Sha256: be38ba7d89d05f07a58a57b648e9534a4ed8656d22931e2dee6b105c5359b684

Contents?: true

Size: 514 Bytes

Versions: 4

Compression:

Stored size: 514 Bytes

Contents

module Actions
  module Pulp3
    module AlternateContentSource
      class CreateRemote < 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_remote
        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_remote.rb
katello-4.5.0 app/lib/actions/pulp3/alternate_content_source/create_remote.rb
katello-4.5.0.rc2 app/lib/actions/pulp3/alternate_content_source/create_remote.rb
katello-4.5.0.rc1 app/lib/actions/pulp3/alternate_content_source/create_remote.rb