Sha256: f9f51e56fc03d25563a07a4b67bd2b6814340fc6b777e45c265f0b35b4ab421f

Contents?: true

Size: 628 Bytes

Versions: 6

Compression:

Stored size: 628 Bytes

Contents

module Actions
  module Pulp3
    module Repository
      class RefreshDistribution < Pulp3::AbstractAsyncTask
        include Helpers::Presenter

        def plan(repository, smart_proxy)
          action = plan_self(:repository_id => repository.id, :smart_proxy_id => smart_proxy.id)
          plan_action(SaveDistributionReferences, repository, smart_proxy, action.output[:pulp_tasks])
        end

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

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
katello-3.12.3 app/lib/actions/pulp3/repository/refresh_distribution.rb
katello-3.12.2 app/lib/actions/pulp3/repository/refresh_distribution.rb
katello-3.12.1 app/lib/actions/pulp3/repository/refresh_distribution.rb
katello-3.12.0 app/lib/actions/pulp3/repository/refresh_distribution.rb
katello-3.12.0.rc2 app/lib/actions/pulp3/repository/refresh_distribution.rb
katello-3.12.0.rc1 app/lib/actions/pulp3/repository/refresh_distribution.rb