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