Sha256: a7c015bbf03a782b88dbc95383ea9fdd8eae6c2e252069ddc0347af379bd2ca6

Contents?: true

Size: 833 Bytes

Versions: 49

Compression:

Stored size: 833 Bytes

Contents

module Actions
  module Pulp3
    module Repository
      class Repair < Pulp3::AbstractAsyncTask
        include Helpers::Presenter
        def plan(repository_id, smart_proxy = SmartProxy.pulp_primary)
          plan_self(:repository_id => repository_id, :smart_proxy_id => smart_proxy.id)
        end

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

        def run_progress
          presenter.progress
        end

        def run_progress_weight
          10
        end

        def presenter
          Presenters::RepairPresenter.new(self)
        end

        def rescue_strategy_for_self
          Dynflow::Action::Rescue::Skip
        end
      end
    end
  end
end

Version data entries

49 entries across 49 versions & 1 rubygems

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