Class: Actions::ForemanPatch::Window::ResolveHosts
- Inherits:
-
EntryAction
- Object
- EntryAction
- Actions::ForemanPatch::Window::ResolveHosts
- Defined in:
- app/lib/actions/foreman_patch/window/resolve_hosts.rb
Instance Method Summary collapse
Instance Method Details
#humanized_name ⇒ Object
24 25 26 |
# File 'app/lib/actions/foreman_patch/window/resolve_hosts.rb', line 24 def humanized_name _('Resolve Hosts for %s') % window.name end |
#plan(window) ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 17 18 |
# File 'app/lib/actions/foreman_patch/window/resolve_hosts.rb', line 6 def plan(window) input.update serialize_args(window: window) sequence do concurrence do window.rounds.each do |round| plan_action(Actions::ForemanPatch::Round::ResolveHosts, round) end end plan_action(Actions::ForemanPatch::Window::Publish, window) end end |
#window ⇒ Object
20 21 22 |
# File 'app/lib/actions/foreman_patch/window/resolve_hosts.rb', line 20 def window @window ||= ::ForemanPatch::Window.find(input[:window][:id]) end |