Sha256: 31a47415f4204817264a2ca137fdb1f91e0cbd2241b33e01682456b8b746509c
Contents?: true
Size: 1.08 KB
Versions: 75
Compression:
Stored size: 1.08 KB
Contents
module Actions module Katello module Host module Package class Update < Actions::Katello::AgentAction def self.agent_message :update_package end def agent_action_type :content_install end def humanized_name if input.try(:[], :hostname) _("Update package for %s") % input[:hostname] else _("Update package") end end def humanized_input [(input[:content].present? && input[:content].join(", ") || "all packages")] + super end def finalize host = ::Host.find_by(:id => input[:host_id]) host.update(audit_comment: audit_comment) end def audit_comment if input[:content].present? (_("Update of package(s) requested: %{packages}") % {packages: input[:content].join(", ")}).truncate(255) else _("Update of all packages requested") end end end end end end end
Version data entries
75 entries across 75 versions & 1 rubygems