Sha256: 01e6b22a21cbad34919c139fee6d37477b6eb95b75ddc0b540cfc101e4c936e3

Contents?: true

Size: 821 Bytes

Versions: 3

Compression:

Stored size: 821 Bytes

Contents

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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
reap-6.0.1 lib/reap/rake.rb
reap-6.0.0 lib/reap/rake.rb
reap-6.0.2 lib/reap/rake.rb