Sha256: 20e3568981bd622ee959b87392796b4a5783ef38ae5001208880b9e22284c38d

Contents?: true

Size: 501 Bytes

Versions: 4

Compression:

Stored size: 501 Bytes

Contents

module Actions
  module Pulp3
    module AlternateContentSource
      class Create < Pulp3::Abstract
        def plan(acs, smart_proxy)
          plan_self(:acs_id => acs.id, :smart_proxy_id => smart_proxy.id)
        end

        def run
          acs = ::Katello::AlternateContentSource.find(input[:acs_id])
          output[:response] = acs.backend_service(smart_proxy).create
        end

        def rescue_strategy
          Dynflow::Action::Rescue::Skip
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

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