Class: Actions::Katello::Host::PackageGroup::Install

Inherits:
EntryAction
  • Object
show all
Includes:
Helpers::Presenter
Defined in:
app/lib/actions/katello/host/package_group/install.rb

Instance Method Summary collapse

Instance Method Details

#humanized_inputObject



22
23
24
# File 'app/lib/actions/katello/host/package_group/install.rb', line 22

def humanized_input
  [input[:groups].join(", ")] + super
end

#humanized_nameObject



18
19
20
# File 'app/lib/actions/katello/host/package_group/install.rb', line 18

def humanized_name
  _("Install package group")
end

#plan(host, groups) ⇒ Object



8
9
10
11
12
13
14
15
16
# File 'app/lib/actions/katello/host/package_group/install.rb', line 8

def plan(host, groups)
  Type! host, ::Host::Managed

  action_subject(host, :groups => groups)
  plan_action(Pulp::Consumer::ContentInstall,
              consumer_uuid: host.content_facet.uuid,
              type:          'package_group',
              args:          groups)
end

#presenterObject



26
27
28
# File 'app/lib/actions/katello/host/package_group/install.rb', line 26

def presenter
  Helpers::Presenter::Delegated.new(self, planned_actions(Pulp::Consumer::ContentInstall))
end