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.
VERSION | = | 3 ; |