Class: Actions::Staypuft::Host::AssertReportSuccess
- Inherits:
-
Dynflow::Action
- Object
- Dynflow::Action
- Actions::Staypuft::Host::AssertReportSuccess
- Defined in:
- app/lib/actions/staypuft/host/assert_report_success.rb
Instance Method Summary collapse
Instance Method Details
#plan(host_id) ⇒ Object
8 9 10 |
# File 'app/lib/actions/staypuft/host/assert_report_success.rb', line 8 def plan(host_id) plan_self host_id: host_id end |
#run(event = nil) ⇒ Object
12 13 14 15 16 17 18 19 |
# File 'app/lib/actions/staypuft/host/assert_report_success.rb', line 12 def run(event = nil) case event when Dynflow::Action::Skip output[:status] = true else output[:status] = assert_latest_report_success(input[:host_id]) end end |