Class: Actions::Katello::Host::PackageGroup::Remove

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

Instance Method Summary collapse

Instance Method Details

#humanized_inputObject



20
21
22
# File 'app/lib/actions/katello/host/package_group/remove.rb', line 20

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

#humanized_nameObject



16
17
18
# File 'app/lib/actions/katello/host/package_group/remove.rb', line 16

def humanized_name
  _("Remove package group")
end

#plan(host, groups) ⇒ Object



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

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

#presenterObject



24
25
26
27
# File 'app/lib/actions/katello/host/package_group/remove.rb', line 24

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