Module: Reseed

Defined in:
lib/reseed.rb,
lib/reseed/version.rb

Constant Summary collapse

VERSION =
"0.1.1"

Class Method Summary collapse

Class Method Details

.create_taskObject



9
10
11
12
13
14
15
16
17
18
19
20
# File 'lib/reseed.rb', line 9

def self.create_task
   Object.class_eval {
      def reseed(name, &configblock)
         task :"#{name}" do |t, task_args|
         options = []
         configblock.call options
         task = ReseedTask.new
         task.execute name, options
      end
   end
   }
end