Sha256: 882494f7034d0a410435dd5be3fbef7591d8205e31b84579525a31d50401340a

Contents?: true

Size: 612 Bytes

Versions: 5

Compression:

Stored size: 612 Bytes

Contents

module Actions
  module Pulp
    module Repository
      class Refresh < Pulp::Abstract
        input_format do
          param :capsule_id
          param :pulp_id
        end

        def plan(repository, options = {})
          options[:capsule_id] ||= SmartProxy.default_capsule!.id
          plan_self(:capsule_id => options[:capsule_id], :pulp_id => repository.pulp_id)
        end

        def run
          repo = ::Katello::Repository.find_by(:pulp_id => input[:pulp_id])
          output[:results] = repo.backend_service(smart_proxy(input[:capsule_id])).refresh
        end
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
katello-3.11.0.rc2 app/lib/actions/pulp/repository/refresh.rb
katello-3.11.0.rc1 app/lib/actions/pulp/repository/refresh.rb
katello-3.10.0 app/lib/actions/pulp/repository/refresh.rb
katello-3.10.0.rc1.1 app/lib/actions/pulp/repository/refresh.rb
katello-3.10.0.rc1 app/lib/actions/pulp/repository/refresh.rb