Class: Actions::Katello::Host::Erratum::Install

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

Instance Method Summary collapse

Instance Method Details

#humanized_inputObject



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

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

#humanized_nameObject



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

#presenterObject



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_locksObject



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

def resource_locks
  :link
end