Sha256: dd79c418fa0603b5d43d11076d92acc6b19adb0f3cf79f13cef5b0258d24176e

Contents?: true

Size: 726 Bytes

Versions: 28

Compression:

Stored size: 726 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], Organization.current || repositories.first.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

28 entries across 28 versions & 1 rubygems

Version Path
katello-4.7.6 app/lib/actions/pulp3/repository/reclaim_space.rb
katello-4.7.5 app/lib/actions/pulp3/repository/reclaim_space.rb
katello-4.7.4 app/lib/actions/pulp3/repository/reclaim_space.rb
katello-4.8.0.rc1 app/lib/actions/pulp3/repository/reclaim_space.rb
katello-4.7.3 app/lib/actions/pulp3/repository/reclaim_space.rb
katello-4.7.2 app/lib/actions/pulp3/repository/reclaim_space.rb
katello-4.7.1 app/lib/actions/pulp3/repository/reclaim_space.rb
katello-4.6.2.1 app/lib/actions/pulp3/repository/reclaim_space.rb
katello-4.6.2 app/lib/actions/pulp3/repository/reclaim_space.rb
katello-4.7.0 app/lib/actions/pulp3/repository/reclaim_space.rb
katello-4.6.1 app/lib/actions/pulp3/repository/reclaim_space.rb
katello-4.7.0.rc2 app/lib/actions/pulp3/repository/reclaim_space.rb
katello-4.7.0.rc1 app/lib/actions/pulp3/repository/reclaim_space.rb
katello-4.4.2.2 app/lib/actions/pulp3/repository/reclaim_space.rb
katello-4.4.2.1 app/lib/actions/pulp3/repository/reclaim_space.rb
katello-4.4.2 app/lib/actions/pulp3/repository/reclaim_space.rb
katello-4.5.1 app/lib/actions/pulp3/repository/reclaim_space.rb
katello-4.6.0 app/lib/actions/pulp3/repository/reclaim_space.rb
katello-4.6.0.rc2 app/lib/actions/pulp3/repository/reclaim_space.rb
katello-4.6.0.rc1 app/lib/actions/pulp3/repository/reclaim_space.rb