Sha256: 88c8914d7b1be8609544b34aeb1e106d7203fcb9e606552223ac69406c402123
Contents?: true
Size: 644 Bytes
Versions: 81
Compression:
Stored size: 644 Bytes
Contents
module Actions class Actions::ActionWithSubPlans < Actions::EntryAction include Dynflow::Action::WithSubPlans def plan(*_args) raise NotImplementedError end def humanized_output return unless counts_set? _('%{total} task(s), %{success} success, %{failed} fail') % { total: output[:total_count], success: output[:success_count], failed: output[:failed_count] } end def run_progress if counts_set? && output[:total_count] > 0 (output[:success_count] + output[:failed_count]).to_f / output[:total_count] else 0.1 end end end end
Version data entries
81 entries across 81 versions & 1 rubygems