Sha256: a274f306c3e97a13acfbe26ad8b747a19eaebfabd38903faf158f6038b827d75

Contents?: true

Size: 544 Bytes

Versions: 5

Compression:

Stored size: 544 Bytes

Contents

module Actions
  module Pulp3
    module Repository
      class CreateRemote < Pulp3::Abstract
        def plan(repository, smart_proxy)
          plan_self(:repository_id => repository.id, :smart_proxy_id => smart_proxy.id) if repository.root.url?
        end

        def run
          repo = ::Katello::Repository.find(input[:repository_id])
          output[:response] = repo.backend_service(smart_proxy).create_remote
        end

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

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
katello-4.1.4 app/lib/actions/pulp3/repository/create_remote.rb
katello-4.1.3 app/lib/actions/pulp3/repository/create_remote.rb
katello-4.1.2.1 app/lib/actions/pulp3/repository/create_remote.rb
katello-4.1.2 app/lib/actions/pulp3/repository/create_remote.rb
katello-4.1.1 app/lib/actions/pulp3/repository/create_remote.rb