Sha256: 245f0b06467f0dc9f86f008905f96befc0dfac89c5c34ad5a8691f111f58826c

Contents?: true

Size: 872 Bytes

Versions: 82

Compression:

Stored size: 872 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
          if input.try(:[], :hostname).nil?
            _("Update for host")
          else
            _("Update for host %s") % input[:hostname]
          end
        end
      end
    end
  end
end

Version data entries

82 entries across 82 versions & 1 rubygems

Version Path
katello-3.3.2 app/lib/actions/katello/host/update_content_view.rb
katello-3.4.0 app/lib/actions/katello/host/update_content_view.rb
katello-3.4.0.rc2 app/lib/actions/katello/host/update_content_view.rb
katello-3.4.0.rc1 app/lib/actions/katello/host/update_content_view.rb
katello-3.3.1.1 app/lib/actions/katello/host/update_content_view.rb
katello-3.3.1 app/lib/actions/katello/host/update_content_view.rb
katello-3.3.0.1 app/lib/actions/katello/host/update_content_view.rb
katello-3.3.0 app/lib/actions/katello/host/update_content_view.rb
katello-3.3.0.rc2 app/lib/actions/katello/host/update_content_view.rb
katello-3.3.0.rc1.1 app/lib/actions/katello/host/update_content_view.rb
katello-3.3.0.rc1 app/lib/actions/katello/host/update_content_view.rb
katello-3.2.1.1 app/lib/actions/katello/host/update_content_view.rb
katello-3.2.1 app/lib/actions/katello/host/update_content_view.rb
katello-3.2.0 app/lib/actions/katello/host/update_content_view.rb
katello-3.2.0.rc3 app/lib/actions/katello/host/update_content_view.rb
katello-3.2.0.rc2 app/lib/actions/katello/host/update_content_view.rb
katello-3.2.0.rc1.1 app/lib/actions/katello/host/update_content_view.rb
katello-3.2.0.rc1 app/lib/actions/katello/host/update_content_view.rb
katello-3.1.0.1 app/lib/actions/katello/host/update_content_view.rb
katello-3.1.0 app/lib/actions/katello/host/update_content_view.rb