Class: Actions::Staypuft::Host::WaitUntilHostReady
- Inherits:
-
Base
- Object
- Base
- Actions::Staypuft::Host::WaitUntilHostReady
- Includes:
- Dynflow::Action::Polling
- Defined in:
- app/lib/actions/staypuft/host/wait_until_host_ready.rb
Instance Method Summary collapse
- #done? ⇒ Boolean
- #external_task ⇒ Object
- #plan(host_id) ⇒ Object
- #run_progress ⇒ Object
- #run_progress_weight ⇒ Object
Instance Method Details
#done? ⇒ Boolean
30 31 32 |
# File 'app/lib/actions/staypuft/host/wait_until_host_ready.rb', line 30 def done? external_task end |
#external_task ⇒ Object
26 27 28 |
# File 'app/lib/actions/staypuft/host/wait_until_host_ready.rb', line 26 def external_task output[:status] end |
#plan(host_id) ⇒ Object
22 23 24 |
# File 'app/lib/actions/staypuft/host/wait_until_host_ready.rb', line 22 def plan(host_id) plan_self host_id: host_id end |
#run_progress ⇒ Object
38 39 40 |
# File 'app/lib/actions/staypuft/host/wait_until_host_ready.rb', line 38 def run_progress 0.1 end |
#run_progress_weight ⇒ Object
34 35 36 |
# File 'app/lib/actions/staypuft/host/wait_until_host_ready.rb', line 34 def run_progress_weight 4 end |