Module: ForemanTasks::Triggers
- Defined in:
- lib/foreman_tasks/triggers.rb
Instance Attribute Summary collapse
Instance Method Summary collapse
- #async_task(action, *args, &block) ⇒ Object
- #delay(action, delay_options, *args) ⇒ Object
- #sync_task(action, *args, &block) ⇒ Object
- #trigger(action, *args, &block) ⇒ Object
- #trigger_task(async, action, *args, &block) ⇒ Object
Instance Attribute Details
#foreman_tasks ⇒ Object
5 6 7 |
# File 'lib/foreman_tasks/triggers.rb', line 5 def foreman_tasks @foreman_tasks ||= ForemanTasks end |
Instance Method Details
#async_task(action, *args, &block) ⇒ Object
17 18 19 |
# File 'lib/foreman_tasks/triggers.rb', line 17 def async_task(action, *args, &block) foreman_tasks.async_task(action, *args, &block) end |
#delay(action, delay_options, *args) ⇒ Object
25 26 27 |
# File 'lib/foreman_tasks/triggers.rb', line 25 def delay(action, , *args) foreman_tasks.delay(action, , *args) end |
#sync_task(action, *args, &block) ⇒ Object
21 22 23 |
# File 'lib/foreman_tasks/triggers.rb', line 21 def sync_task(action, *args, &block) foreman_tasks.sync_task(action, *args, &block) end |
#trigger(action, *args, &block) ⇒ Object
9 10 11 |
# File 'lib/foreman_tasks/triggers.rb', line 9 def trigger(action, *args, &block) foreman_tasks.trigger action, *args, &block end |
#trigger_task(async, action, *args, &block) ⇒ Object
13 14 15 |
# File 'lib/foreman_tasks/triggers.rb', line 13 def trigger_task(async, action, *args, &block) foreman_tasks.trigger_task(async, action, *args, &block) end |