Sha256: 0ec594d2d89033e997aceb83118ae0b0d51f51d91d1844649042545f13ee4911

Contents?: true

Size: 728 Bytes

Versions: 4

Compression:

Stored size: 728 Bytes

Contents

module Actions
  module Katello
    module AlternateContentSource
      class Create < Actions::EntryAction
        def plan(acs, smart_proxies)
          acs.save!
          action_subject(acs)
          smart_proxies = smart_proxies.uniq
          concurrence do
            smart_proxies.each do |smart_proxy|
              ::Katello::SmartProxyAlternateContentSource.create(alternate_content_source_id: acs.id, smart_proxy_id: smart_proxy.id)
              plan_action(Pulp3::Orchestration::AlternateContentSource::Create,
                          acs, smart_proxy)
            end
          end
        end

        def humanized_name
          _("Create Alternate Content Source")
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
katello-4.5.1 app/lib/actions/katello/alternate_content_source/create.rb
katello-4.5.0 app/lib/actions/katello/alternate_content_source/create.rb
katello-4.5.0.rc2 app/lib/actions/katello/alternate_content_source/create.rb
katello-4.5.0.rc1 app/lib/actions/katello/alternate_content_source/create.rb