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_task ⇒ Object
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| = [] configblock.call task = ReseedTask.new task.execute name, end end } end |