Commit 3049c810 by Jon Frisby

Prevent tasks from being loaded multiple times.

parent b006985c
......@@ -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'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment