Sha256: cf7766e66a41cb4e00eca449213180d4202f12e07e897f51659611e1323dbf52

Contents?: true

Size: 481 Bytes

Versions: 13

Compression:

Stored size: 481 Bytes

Contents

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

          plan_action(::Actions::Katello::Host::Update, system.foreman_host)
        end
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
katello-3.1.0.1 app/lib/actions/katello/system/reassign.rb
katello-3.1.0 app/lib/actions/katello/system/reassign.rb
katello-3.1.0.rc2.1 app/lib/actions/katello/system/reassign.rb
katello-3.0.2 app/lib/actions/katello/system/reassign.rb
katello-3.1.0.rc1 app/lib/actions/katello/system/reassign.rb
katello-3.0.1 app/lib/actions/katello/system/reassign.rb
katello-3.0.0 app/lib/actions/katello/system/reassign.rb
katello-3.0.0.rc7 app/lib/actions/katello/system/reassign.rb
katello-3.0.0.rc5 app/lib/actions/katello/system/reassign.rb
katello-3.0.0.rc4 app/lib/actions/katello/system/reassign.rb
katello-3.0.0.rc3 app/lib/actions/katello/system/reassign.rb
katello-3.0.0.rc2 app/lib/actions/katello/system/reassign.rb
katello-3.0.0.rc1 app/lib/actions/katello/system/reassign.rb