Module: Rakeman::TaskCreator
- Included in:
- Manager
- Defined in:
- app/services/rakeman/task_creator.rb
Instance Method Summary collapse
Instance Method Details
#all_tasks_list ⇒ Object
12 13 14 15 16 |
# File 'app/services/rakeman/task_creator.rb', line 12 def all_tasks_list Rails.application.load_tasks parse_to_hash(Rake::Task.tasks) end |
#persist_tasks(tasks_list: nil, destroy_old_tasks: true) ⇒ Object
4 5 6 7 8 9 10 |
# File 'app/services/rakeman/task_creator.rb', line 4 def persist_tasks(tasks_list: nil, destroy_old_tasks: true) Rakeman::RakeTask.destroy_all if destroy_old_tasks tasks_list ||= all_tasks_list create_from_list(tasks_list) end |