Sha256: b44fd06b38f70540ce52f9e57eec7d49832dd5086ee9e822132f82782971be54

Contents?: true

Size: 630 Bytes

Versions: 57

Compression:

Stored size: 630 Bytes

Contents

module Actions
  module Pulp3
    module AlternateContentSource
      class CreateRemote < Pulp3::Abstract
        def plan(smart_proxy_acs)
          plan_self(smart_proxy_id: smart_proxy_acs.smart_proxy_id, smart_proxy_acs_id: smart_proxy_acs.id)
        end

        def run
          smart_proxy_acs_id = input[:smart_proxy_acs_id]
          smart_proxy_acs = ::Katello::SmartProxyAlternateContentSource.find(smart_proxy_acs_id)
          output[:response] = smart_proxy_acs.backend_service.create_remote
        end

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

Version data entries

57 entries across 57 versions & 1 rubygems

Version Path
katello-4.16.0 app/lib/actions/pulp3/alternate_content_source/create_remote.rb
katello-4.15.1 app/lib/actions/pulp3/alternate_content_source/create_remote.rb
katello-4.16.0.rc2 app/lib/actions/pulp3/alternate_content_source/create_remote.rb
katello-4.16.0.rc1 app/lib/actions/pulp3/alternate_content_source/create_remote.rb
katello-4.14.3 app/lib/actions/pulp3/alternate_content_source/create_remote.rb
katello-4.14.2 app/lib/actions/pulp3/alternate_content_source/create_remote.rb
katello-4.15.0 app/lib/actions/pulp3/alternate_content_source/create_remote.rb
katello-4.15.0.rc2 app/lib/actions/pulp3/alternate_content_source/create_remote.rb
katello-4.15.0.rc1 app/lib/actions/pulp3/alternate_content_source/create_remote.rb
katello-4.14.1 app/lib/actions/pulp3/alternate_content_source/create_remote.rb
katello-4.14.0 app/lib/actions/pulp3/alternate_content_source/create_remote.rb
katello-4.14.0.rc3 app/lib/actions/pulp3/alternate_content_source/create_remote.rb
katello-4.14.0.rc2 app/lib/actions/pulp3/alternate_content_source/create_remote.rb
katello-4.14.0.rc1.1 app/lib/actions/pulp3/alternate_content_source/create_remote.rb
katello-4.14.0.rc1 app/lib/actions/pulp3/alternate_content_source/create_remote.rb
katello-4.13.1 app/lib/actions/pulp3/alternate_content_source/create_remote.rb
katello-4.13.0 app/lib/actions/pulp3/alternate_content_source/create_remote.rb
katello-4.12.1 app/lib/actions/pulp3/alternate_content_source/create_remote.rb
katello-4.13.0.rc1 app/lib/actions/pulp3/alternate_content_source/create_remote.rb
katello-4.12.0 app/lib/actions/pulp3/alternate_content_source/create_remote.rb