Sha256: da27c7162bcb55adcc5d2be0d4e70bc58af8cb4b82959a938bc1ad77bd4ab332

Contents?: true

Size: 704 Bytes

Versions: 7

Compression:

Stored size: 704 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
        end

        def humanized_name
          _("Synchronize capsule content")
        end

        def invoke_external_task
          pulp_resources.repository.sync(input[:repo_pulp_id])
        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

7 entries across 7 versions & 1 rubygems

Version Path
katello-3.4.2 app/lib/actions/pulp/consumer/sync_capsule.rb
katello-3.4.1 app/lib/actions/pulp/consumer/sync_capsule.rb
katello-3.4.0.2 app/lib/actions/pulp/consumer/sync_capsule.rb
katello-3.4.0.1 app/lib/actions/pulp/consumer/sync_capsule.rb
katello-3.4.0 app/lib/actions/pulp/consumer/sync_capsule.rb
katello-3.4.0.rc2 app/lib/actions/pulp/consumer/sync_capsule.rb
katello-3.4.0.rc1 app/lib/actions/pulp/consumer/sync_capsule.rb