Class: Actions::Katello::Host::Package::Update

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

Instance Method Summary collapse

Instance Method Details

#humanized_inputObject



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

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

#humanized_nameObject



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

def humanized_name
  _("Update package")
end

#plan(host, packages) ⇒ Object



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

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

  action_subject(host, :packages => packages)
  plan_action(Pulp::Consumer::ContentUpdate,
              consumer_uuid: host.content_facet.uuid,
              type:          'rpm',
              args:          packages)
end

#presenterObject



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

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