Sha256: 4ee94d27f9dcaed15c4e75da6f43f533fbb15baf60a1fb8bd03d32a4a5e2860f

Contents?: true

Size: 857 Bytes

Versions: 119

Compression:

Stored size: 857 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)
            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

119 entries across 119 versions & 1 rubygems

Version Path
katello-4.3.0.rc3 app/lib/actions/katello/host/update_content_view.rb
katello-4.3.0.rc2.1 app/lib/actions/katello/host/update_content_view.rb
katello-4.3.0.rc2 app/lib/actions/katello/host/update_content_view.rb
katello-4.3.0.rc1 app/lib/actions/katello/host/update_content_view.rb
katello-4.2.1 app/lib/actions/katello/host/update_content_view.rb
katello-4.2.0.1 app/lib/actions/katello/host/update_content_view.rb
katello-4.1.4 app/lib/actions/katello/host/update_content_view.rb
katello-4.0.3 app/lib/actions/katello/host/update_content_view.rb
katello-4.2.0.1.rc3 app/lib/actions/katello/host/update_content_view.rb
katello-3.18.5 app/lib/actions/katello/host/update_content_view.rb
katello-4.2.0.1.rc2 app/lib/actions/katello/host/update_content_view.rb
katello-4.2.0.rc2 app/lib/actions/katello/host/update_content_view.rb
katello-4.1.3 app/lib/actions/katello/host/update_content_view.rb
katello-4.2.0.rc1 app/lib/actions/katello/host/update_content_view.rb
katello-4.0.2.1 app/lib/actions/katello/host/update_content_view.rb
katello-4.1.2.1 app/lib/actions/katello/host/update_content_view.rb
katello-4.0.2 app/lib/actions/katello/host/update_content_view.rb
katello-4.1.2 app/lib/actions/katello/host/update_content_view.rb
katello-3.18.4 app/lib/actions/katello/host/update_content_view.rb
katello-4.1.1 app/lib/actions/katello/host/update_content_view.rb