Sha256: 6165b2b2e5cba64429748199e9d3faaa64f8a34e9885a18f0bed2d49913ccec0

Contents?: true

Size: 432 Bytes

Versions: 78

Compression:

Stored size: 432 Bytes

Contents

module Actions
  module Katello
    module Host
      class Reassign < Actions::Base
        def plan(host, content_view_id, environment_id)
          host.content_facet.content_view = ::Katello::ContentView.find(content_view_id)
          host.content_facet.lifecycle_environment = ::Katello::KTEnvironment.find(environment_id)

          plan_action(::Actions::Katello::Host::Update, host)
        end
      end
    end
  end
end

Version data entries

78 entries across 78 versions & 1 rubygems

Version Path
katello-3.14.1 app/lib/actions/katello/host/reassign.rb
katello-3.13.4 app/lib/actions/katello/host/reassign.rb
katello-3.14.0 app/lib/actions/katello/host/reassign.rb
katello-3.13.3 app/lib/actions/katello/host/reassign.rb
katello-3.14.0.rc2 app/lib/actions/katello/host/reassign.rb
katello-3.13.2 app/lib/actions/katello/host/reassign.rb
katello-3.14.0.rc1 app/lib/actions/katello/host/reassign.rb
katello-3.13.1 app/lib/actions/katello/host/reassign.rb
katello-3.13.0 app/lib/actions/katello/host/reassign.rb
katello-3.13.0.rc2.1 app/lib/actions/katello/host/reassign.rb
katello-3.13.0.rc2 app/lib/actions/katello/host/reassign.rb
katello-3.12.3 app/lib/actions/katello/host/reassign.rb
katello-3.12.2 app/lib/actions/katello/host/reassign.rb
katello-3.13.0.rc1 app/lib/actions/katello/host/reassign.rb
katello-3.12.1 app/lib/actions/katello/host/reassign.rb
katello-3.11.2 app/lib/actions/katello/host/reassign.rb
katello-3.10.2 app/lib/actions/katello/host/reassign.rb
katello-3.12.0 app/lib/actions/katello/host/reassign.rb
katello-3.12.0.rc2 app/lib/actions/katello/host/reassign.rb
katello-3.10.1.1 app/lib/actions/katello/host/reassign.rb