Sha256: 69e618ac60a6b1dca7954081bf407234211e523235179d9e6dd4e7b2d9e42564

Contents?: true

Size: 494 Bytes

Versions: 3

Compression:

Stored size: 494 Bytes

Contents

module Actions
  module Pulp3
    module Repository
      class Initialize < Pulp3::AbstractAsyncTask
        def plan(repository, smart_proxy)
          plan_self(repository_id: repository.id,
                    smart_proxy_id: smart_proxy.id)
        end

        def invoke_external_task
          repository = ::Katello::Repository.find(input[:repository_id])
          output[:pulp_tasks] = repository.backend_service(smart_proxy).initialize_empty
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
katello-4.15.0 app/lib/actions/pulp3/repository/initialize.rb
katello-4.15.0.rc2 app/lib/actions/pulp3/repository/initialize.rb
katello-4.15.0.rc1 app/lib/actions/pulp3/repository/initialize.rb