Sha256: f75b3f2edaada25b08a815f1a97b8a38156b5602b19e1e9108f27f7ebadebb1d
Contents?: true
Size: 764 Bytes
Versions: 9
Compression:
Stored size: 764 Bytes
Contents
module Actions module Katello module Host class UpdateContentView < Actions::EntryAction def plan(host, content_view_id, lifecycle_environment_id) if host.content_facet host.content_facet.content_view = ::Katello::ContentView.find(content_view_id) host.content_facet.lifecycle_environment = ::Katello::KTEnvironment.find(lifecycle_environment_id) plan_action(Actions::Katello::Host::Update, host) plan_self(:hostname => host.name) else fail _("Host %s has not been registered with subscription-manager.") % host.name end end def humanized_name _("Update for host %s") % input[:hostname] end end end end end
Version data entries
9 entries across 9 versions & 1 rubygems