Sha256: bf3c6fd5331321f1b675a5c80ac67cf1579c7d22354a9c4a63f33367b020d0d2

Contents?: true

Size: 786 Bytes

Versions: 34

Compression:

Stored size: 786 Bytes

Contents

module Actions
  module Pulp3
    module Repository
      class CopyContent < Pulp3::AbstractAsyncTask
        def plan(source_repository, smart_proxy, target_repository, options)
          plan_self(options.merge(:source_repository_id => source_repository.id,
                                  :target_repository_id => target_repository.id,
                                  :smart_proxy_id => smart_proxy.id))
        end

        def invoke_external_task
          source = ::Katello::Repository.find(input[:source_repository_id])
          target = ::Katello::Repository.find(input[:target_repository_id] || input[:target_repository])
          output[:pulp_tasks] = target.backend_service(smart_proxy).copy_content_for_source(source, input)
        end
      end
    end
  end
end

Version data entries

34 entries across 34 versions & 1 rubygems

Version Path
katello-3.16.2 app/lib/actions/pulp3/repository/copy_content.rb
katello-3.17.0.rc2.2 app/lib/actions/pulp3/repository/copy_content.rb
katello-3.17.0.rc2.1 app/lib/actions/pulp3/repository/copy_content.rb
katello-3.16.1.2 app/lib/actions/pulp3/repository/copy_content.rb
katello-3.16.1.1 app/lib/actions/pulp3/repository/copy_content.rb
katello-3.17.0.rc2 app/lib/actions/pulp3/repository/copy_content.rb
katello-3.16.1 app/lib/actions/pulp3/repository/copy_content.rb
katello-3.15.3.1 app/lib/actions/pulp3/repository/copy_content.rb
katello-3.15.3 app/lib/actions/pulp3/repository/copy_content.rb
katello-3.15.2 app/lib/actions/pulp3/repository/copy_content.rb
katello-3.16.0.rc2 app/lib/actions/pulp3/repository/copy_content.rb
katello-3.15.1.1 app/lib/actions/pulp3/repository/copy_content.rb
katello-3.16.0.rc1.1 app/lib/actions/pulp3/repository/copy_content.rb
katello-3.15.1 app/lib/actions/pulp3/repository/copy_content.rb
katello-3.16.0.rc1 app/lib/actions/pulp3/repository/copy_content.rb
katello-3.15.0.1 app/lib/actions/pulp3/repository/copy_content.rb
katello-3.15.0 app/lib/actions/pulp3/repository/copy_content.rb
katello-3.15.0.rc2 app/lib/actions/pulp3/repository/copy_content.rb
katello-3.15.0.rc1.3 app/lib/actions/pulp3/repository/copy_content.rb
katello-3.15.0.rc1.2 app/lib/actions/pulp3/repository/copy_content.rb