Module Reap
In: lib/reap/task.rb
lib/reap/bin/reap.rb

Base class for reap tasks.

Here’s an oh so simple example:

  class MyTask < Reap::Task

    register 'mytask'

    default_desc 'this is a custom reap task'

    attr_accessor :message

    def init
      @message ||= master['default'] || 'None Found!'
    end

    def run
      puts @message
    end
  end

The corresponding settings in the ProjectInfo file will then be:

  default: Default text, if any.

  myname:
    TASK: mytask
    message: Message text, if any.

Methods

Classes and Modules

Class Reap::Announce
Class Reap::Info
Class Reap::Install
Class Reap::Noop
Class Reap::Package
Class Reap::Perm
Class Reap::Publish
Class Reap::RDoc
Class Reap::Task
Class Reap::Test
Class Reap::TestExt
Class Reap::WebPublish

Constants

Version = "2005-10-06"

Public Class methods

[Validate]