Sha256: 6301568d7189a480d72ee0c6c6cad872c0dbeac35b5bce4967650e30e247e5f4

Contents?: true

Size: 447 Bytes

Versions: 37

Compression:

Stored size: 447 Bytes

Contents

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

Version data entries

37 entries across 37 versions & 1 rubygems

Version Path
katello-4.14.2 app/lib/actions/katello/host/reassign.rb
katello-4.15.0 app/lib/actions/katello/host/reassign.rb
katello-4.15.0.rc2 app/lib/actions/katello/host/reassign.rb
katello-4.15.0.rc1 app/lib/actions/katello/host/reassign.rb
katello-4.14.1 app/lib/actions/katello/host/reassign.rb
katello-4.14.0 app/lib/actions/katello/host/reassign.rb
katello-4.14.0.rc3 app/lib/actions/katello/host/reassign.rb
katello-4.14.0.rc2 app/lib/actions/katello/host/reassign.rb
katello-4.14.0.rc1.1 app/lib/actions/katello/host/reassign.rb
katello-4.14.0.rc1 app/lib/actions/katello/host/reassign.rb
katello-4.13.1 app/lib/actions/katello/host/reassign.rb
katello-4.13.0 app/lib/actions/katello/host/reassign.rb
katello-4.12.1 app/lib/actions/katello/host/reassign.rb
katello-4.13.0.rc1 app/lib/actions/katello/host/reassign.rb
katello-4.12.0 app/lib/actions/katello/host/reassign.rb
katello-4.12.0.rc3 app/lib/actions/katello/host/reassign.rb
katello-4.12.0.rc2 app/lib/actions/katello/host/reassign.rb
katello-4.12.0.rc1 app/lib/actions/katello/host/reassign.rb
katello-4.11.1 app/lib/actions/katello/host/reassign.rb
katello-4.11.0 app/lib/actions/katello/host/reassign.rb