Sha256: 58bf175bf944cd5ffd24d335d295eccd57a7164f01b0e74d5e8210cd097b4eff

Contents?: true

Size: 688 Bytes

Versions: 36

Compression:

Stored size: 688 Bytes

Contents

module Actions
  module Pulp3
    module Repository
      class ReclaimSpace < Pulp3::AbstractAsyncTask
        def plan(repo, smart_proxy = SmartProxy.pulp_primary)
          action_subject(repo)
          repository_hrefs = ::Katello::Pulp3::RepositoryReference.default_cv_repository_hrefs([repo], repo.organization)
          plan_self(repository_hrefs: repository_hrefs, smart_proxy_id: smart_proxy.id)
        end

        def invoke_external_task
          output[:pulp_tasks] = ::Katello::Pulp3::Api::Core.new(SmartProxy.find(input[:smart_proxy_id])).
            repositories_reclaim_space_api.reclaim(repo_hrefs: input[:repository_hrefs])
        end
      end
    end
  end
end

Version data entries

36 entries across 36 versions & 1 rubygems

Version Path
katello-4.14.2 app/lib/actions/pulp3/repository/reclaim_space.rb
katello-4.15.0 app/lib/actions/pulp3/repository/reclaim_space.rb
katello-4.15.0.rc2 app/lib/actions/pulp3/repository/reclaim_space.rb
katello-4.15.0.rc1 app/lib/actions/pulp3/repository/reclaim_space.rb
katello-4.14.1 app/lib/actions/pulp3/repository/reclaim_space.rb
katello-4.14.0 app/lib/actions/pulp3/repository/reclaim_space.rb
katello-4.14.0.rc3 app/lib/actions/pulp3/repository/reclaim_space.rb
katello-4.14.0.rc2 app/lib/actions/pulp3/repository/reclaim_space.rb
katello-4.14.0.rc1.1 app/lib/actions/pulp3/repository/reclaim_space.rb
katello-4.14.0.rc1 app/lib/actions/pulp3/repository/reclaim_space.rb
katello-4.13.1 app/lib/actions/pulp3/repository/reclaim_space.rb
katello-4.13.0 app/lib/actions/pulp3/repository/reclaim_space.rb
katello-4.12.1 app/lib/actions/pulp3/repository/reclaim_space.rb
katello-4.13.0.rc1 app/lib/actions/pulp3/repository/reclaim_space.rb
katello-4.12.0 app/lib/actions/pulp3/repository/reclaim_space.rb
katello-4.12.0.rc3 app/lib/actions/pulp3/repository/reclaim_space.rb
katello-4.12.0.rc2 app/lib/actions/pulp3/repository/reclaim_space.rb
katello-4.12.0.rc1 app/lib/actions/pulp3/repository/reclaim_space.rb
katello-4.11.1 app/lib/actions/pulp3/repository/reclaim_space.rb
katello-4.11.0 app/lib/actions/pulp3/repository/reclaim_space.rb