Module: SeedHelper::RakeHelper
- Included in:
- SeedHelper
- Defined in:
- lib/seed_helper/rake_helper.rb
Instance Method Summary collapse
Instance Method Details
#create_seed_task(task_name, dependencies = [], &task) ⇒ Object
3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
# File 'lib/seed_helper/rake_helper.rb', line 3 def create_seed_task(task_name, dependencies=[], &task) namespace :db do namespace :seed do desc "Creating #{task_name.to_s.humanize}" task task_name => dependencies.append(:environment) do task_name.to_s.humanize task.call # Print a new line between each set of output for clarity puts "" end end end end |