require 'facet/hash/to_proc' require 'facet/kernel/require_all' require 'facet/openobject' require 'reap/projectinfo' # Require tasks require 'reap/tasks' require_all('./task/*') if File.directory?('task') # Rake doesn't understand help. #def help name, text #end # Rake doesn't understand avail. def avail name, cond end # Modify Rake's desc method to return the last description # if no comment is given. def desc(comment=nil) if comment Rake.application.last_comment = comment else Rake.application.last_comment end end include Tasks # Let the default be the hidden task to display tasks. # You can change it just by overriding the default. task :default => [ :__tasks__ ] task :__tasks__ do Rake.application.options.show_task_pattern = // Rake.application.display_tasks_and_comments end