Sha256: 22ea66edb2aee81e194009e5feec6a4e161d7fa773a9e669b2a5416ea54b6b3c

Contents?: true

Size: 807 Bytes

Versions: 30

Compression:

Stored size: 807 Bytes

Contents

module Actions
  module Pulp3
    module Repository
      class Repair < Pulp3::AbstractAsyncTask
        include Helpers::Presenter
        def plan(repository_id, smart_proxy)
          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

30 entries across 30 versions & 1 rubygems

Version Path
katello-4.4.2.2 app/lib/actions/pulp3/repository/repair.rb
katello-4.4.2.1 app/lib/actions/pulp3/repository/repair.rb
katello-4.4.2 app/lib/actions/pulp3/repository/repair.rb
katello-4.5.1 app/lib/actions/pulp3/repository/repair.rb
katello-4.6.0 app/lib/actions/pulp3/repository/repair.rb
katello-4.6.0.rc2 app/lib/actions/pulp3/repository/repair.rb
katello-4.6.0.rc1 app/lib/actions/pulp3/repository/repair.rb
katello-4.5.0 app/lib/actions/pulp3/repository/repair.rb
katello-4.5.0.rc2 app/lib/actions/pulp3/repository/repair.rb
katello-4.4.1 app/lib/actions/pulp3/repository/repair.rb
katello-4.5.0.rc1 app/lib/actions/pulp3/repository/repair.rb
katello-4.4.0.2 app/lib/actions/pulp3/repository/repair.rb
katello-4.4.0.1 app/lib/actions/pulp3/repository/repair.rb
katello-4.3.1 app/lib/actions/pulp3/repository/repair.rb
katello-4.4.0 app/lib/actions/pulp3/repository/repair.rb
katello-4.4.0.rc2 app/lib/actions/pulp3/repository/repair.rb
katello-4.4.0.rc1 app/lib/actions/pulp3/repository/repair.rb
katello-4.2.2 app/lib/actions/pulp3/repository/repair.rb
katello-4.3.0 app/lib/actions/pulp3/repository/repair.rb
katello-4.3.0.rc4 app/lib/actions/pulp3/repository/repair.rb