module Thor::RakeCompat
def self.included(base)
def self.included(base) # Hack. Make rakefile point to invoker, so rdoc task is generated properly. Rake.application.instance_variable_set(:@rakefile, caller[0].match(/(.*):\d+/)[1]) self.rake_classes << base end
def self.rake_classes
def self.rake_classes @rake_classes ||= [] end