Module Reap
In: lib/reap/task.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.

Classes and Modules

Class Reap::AnnounceTask
Class Reap::FilemodTask
Class Reap::InfoTask
Class Reap::NoopTask
Class Reap::PackageTask
Class Reap::PublishTask
Class Reap::RDocTask
Class Reap::Task
Class Reap::TestTask
Class Reap::WebPublishTask

Constants

VERSION = 3.01 ;

[Validate]