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