Sha256: 28350ca0f12d728b4eca876328729a1c641d186635a66d35ade0cfcd0d56a01f

Contents?: true

Size: 840 Bytes

Versions: 16

Compression:

Stored size: 840 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.assign_single_environment(
              content_view_id: content_view_id,
              lifecycle_environment_id: lifecycle_environment_id
            )
            host.update_candlepin_associations
            plan_self(:hostname => host.name)
          else
            fail _("Host %s has not been registered with subscription-manager.") % host.name
          end
        end

        def humanized_name
          if input.try(:[], :hostname).nil?
            _("Update for host")
          else
            _("Update for host %s") % input[:hostname]
          end
        end
      end
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
katello-4.12.1 app/lib/actions/katello/host/update_content_view.rb
katello-4.12.0 app/lib/actions/katello/host/update_content_view.rb
katello-4.12.0.rc3 app/lib/actions/katello/host/update_content_view.rb
katello-4.12.0.rc2 app/lib/actions/katello/host/update_content_view.rb
katello-4.12.0.rc1 app/lib/actions/katello/host/update_content_view.rb
katello-4.11.1 app/lib/actions/katello/host/update_content_view.rb
katello-4.11.0 app/lib/actions/katello/host/update_content_view.rb
katello-4.11.0.rc2 app/lib/actions/katello/host/update_content_view.rb
katello-4.11.0.rc1 app/lib/actions/katello/host/update_content_view.rb
katello-4.10.0 app/lib/actions/katello/host/update_content_view.rb
katello-4.9.2 app/lib/actions/katello/host/update_content_view.rb
katello-4.10.0.rc2 app/lib/actions/katello/host/update_content_view.rb
katello-4.10.0.rc1 app/lib/actions/katello/host/update_content_view.rb
katello-4.8.4 app/lib/actions/katello/host/update_content_view.rb
katello-4.8.3 app/lib/actions/katello/host/update_content_view.rb
katello-4.8.2 app/lib/actions/katello/host/update_content_view.rb