Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
annotate
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
open-source
annotate
Commits
3049c810
Commit
3049c810
authored
Aug 22, 2012
by
Jon Frisby
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Prevent tasks from being loaded multiple times.
parent
b006985c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
annotate.rb
lib/annotate.rb
+6
-0
No files found.
lib/annotate.rb
View file @
3049c810
...
...
@@ -2,8 +2,14 @@ $:.unshift(File.dirname(__FILE__))
require
'annotate/version'
module
Annotate
def
self
.
loaded_tasks
=
(
val
);
@loaded_tasks
=
val
;
end
def
self
.
loaded_tasks
;
return
@loaded_tasks
;
end
def
self
.
load_tasks
if
File
.
exists?
(
'Rakefile'
)
return
if
(
self
.
loaded_tasks
)
self
.
loaded_tasks
=
true
require
'rake'
load
'./Rakefile'
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment