Class: Actions::Katello::Host::Erratum::Install
- Inherits:
-
EntryAction
- Object
- EntryAction
- Actions::Katello::Host::Erratum::Install
- Includes:
- Helpers::Presenter
- Defined in:
- app/lib/actions/katello/host/erratum/install.rb
Instance Method Summary collapse
- #humanized_input ⇒ Object
- #humanized_name ⇒ Object
- #plan(host, errata_ids) ⇒ Object
- #presenter ⇒ Object
- #resource_locks ⇒ Object
Instance Method Details
#humanized_input ⇒ Object
22 23 24 |
# File 'app/lib/actions/katello/host/erratum/install.rb', line 22 def humanized_input [input[:errata].join(", ")] + super end |
#humanized_name ⇒ Object
18 19 20 |
# File 'app/lib/actions/katello/host/erratum/install.rb', line 18 def humanized_name _("Install erratum") end |
#plan(host, errata_ids) ⇒ Object
8 9 10 11 12 13 14 15 16 |
# File 'app/lib/actions/katello/host/erratum/install.rb', line 8 def plan(host, errata_ids) Type! host, ::Host::Managed action_subject(host, :errata => errata_ids) plan_action(Pulp::Consumer::ContentInstall, consumer_uuid: host.content_facet.uuid, type: 'erratum', args: errata_ids) end |
#presenter ⇒ Object
30 31 32 |
# File 'app/lib/actions/katello/host/erratum/install.rb', line 30 def presenter Helpers::Presenter::Delegated.new(self, planned_actions(Pulp::Consumer::ContentInstall)) end |
#resource_locks ⇒ Object
26 27 28 |
# File 'app/lib/actions/katello/host/erratum/install.rb', line 26 def resource_locks :link end |