Sha256: 2bc12c460070ae81be69a7a2a70af942bcc9c3c60b78ff58a1112177ee34d900

Contents?: true

Size: 639 Bytes

Versions: 22

Compression:

Stored size: 639 Bytes

Contents

module Actions
  module Katello
    module ContentViewEnvironment
      class ReassignObjects < Actions::Base
        def plan(content_view_environment, options)
          concurrence do
            content_view_environment.systems.each do |system|
              plan_action(System::Reassign, system, options[:system_content_view_id], options[:system_environment_id])
            end

            content_view_environment.activation_keys.each do |key|
              plan_action(ActivationKey::Reassign, key, options[:key_content_view_id], options[:key_environment_id])
            end
          end
        end
      end
    end
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
katello-3.1.0.1 app/lib/actions/katello/content_view_environment/reassign_objects.rb
katello-3.1.0 app/lib/actions/katello/content_view_environment/reassign_objects.rb
katello-3.1.0.rc2.1 app/lib/actions/katello/content_view_environment/reassign_objects.rb
katello-3.0.2 app/lib/actions/katello/content_view_environment/reassign_objects.rb
katello-2.4.5 app/lib/actions/katello/content_view_environment/reassign_objects.rb
katello-3.1.0.rc1 app/lib/actions/katello/content_view_environment/reassign_objects.rb
katello-3.0.1 app/lib/actions/katello/content_view_environment/reassign_objects.rb
katello-2.4.4 app/lib/actions/katello/content_view_environment/reassign_objects.rb
katello-3.0.0 app/lib/actions/katello/content_view_environment/reassign_objects.rb
katello-2.4.3 app/lib/actions/katello/content_view_environment/reassign_objects.rb
katello-3.0.0.rc7 app/lib/actions/katello/content_view_environment/reassign_objects.rb
katello-3.0.0.rc5 app/lib/actions/katello/content_view_environment/reassign_objects.rb
katello-2.4.2 app/lib/actions/katello/content_view_environment/reassign_objects.rb
katello-3.0.0.rc4 app/lib/actions/katello/content_view_environment/reassign_objects.rb
katello-3.0.0.rc3 app/lib/actions/katello/content_view_environment/reassign_objects.rb
katello-3.0.0.rc2 app/lib/actions/katello/content_view_environment/reassign_objects.rb
katello-3.0.0.rc1 app/lib/actions/katello/content_view_environment/reassign_objects.rb
katello-2.4.1 app/lib/actions/katello/content_view_environment/reassign_objects.rb
katello-2.4.0 app/lib/actions/katello/content_view_environment/reassign_objects.rb
katello-2.4.0.rc3 app/lib/actions/katello/content_view_environment/reassign_objects.rb