Sha256: 981d2d0a2e0ddd4c1c4c3fbabadb46aab5eb199e13382bd47d2b229d480a5856

Contents?: true

Size: 773 Bytes

Versions: 52

Compression:

Stored size: 773 Bytes

Contents

module Actions
  module Pulp
    module Consumer
      class SyncCapsule < ::Actions::Pulp::AbstractAsyncTask
        input_format do
          param :capsule_id, Integer
          param :repo_pulp_id, String
          param :sync_options
        end

        def humanized_name
          _("Synchronize capsule content")
        end

        def invoke_external_task
          pulp_resources.repository.sync(input[:repo_pulp_id], override_config: input[:sync_options])
        end

        def run_progress
          # override this method so this task's progress isn't 0.5
          # when it is initiated, skewing the progress bar progress
          self.done? ? 1 : 0.1
        end

        def run_progress_weight
          100
        end
      end
    end
  end
end

Version data entries

52 entries across 52 versions & 1 rubygems

Version Path
katello-3.13.4 app/lib/actions/pulp/consumer/sync_capsule.rb
katello-3.13.3 app/lib/actions/pulp/consumer/sync_capsule.rb
katello-3.13.2 app/lib/actions/pulp/consumer/sync_capsule.rb
katello-3.13.1 app/lib/actions/pulp/consumer/sync_capsule.rb
katello-3.13.0 app/lib/actions/pulp/consumer/sync_capsule.rb
katello-3.13.0.rc2.1 app/lib/actions/pulp/consumer/sync_capsule.rb
katello-3.13.0.rc2 app/lib/actions/pulp/consumer/sync_capsule.rb
katello-3.12.3 app/lib/actions/pulp/consumer/sync_capsule.rb
katello-3.12.2 app/lib/actions/pulp/consumer/sync_capsule.rb
katello-3.13.0.rc1 app/lib/actions/pulp/consumer/sync_capsule.rb
katello-3.12.1 app/lib/actions/pulp/consumer/sync_capsule.rb
katello-3.11.2 app/lib/actions/pulp/consumer/sync_capsule.rb
katello-3.10.2 app/lib/actions/pulp/consumer/sync_capsule.rb
katello-3.12.0 app/lib/actions/pulp/consumer/sync_capsule.rb
katello-3.12.0.rc2 app/lib/actions/pulp/consumer/sync_capsule.rb
katello-3.10.1.1 app/lib/actions/pulp/consumer/sync_capsule.rb
katello-3.12.0.rc1 app/lib/actions/pulp/consumer/sync_capsule.rb
katello-3.10.1 app/lib/actions/pulp/consumer/sync_capsule.rb
katello-3.11.1 app/lib/actions/pulp/consumer/sync_capsule.rb
katello-3.11.0 app/lib/actions/pulp/consumer/sync_capsule.rb