Sha256: 71da0bda9f1b39076ec404af2dfc0d873b3df8350bc4a0bab364fa9f5a2dfba4
Contents?: true
Size: 701 Bytes
Versions: 28
Compression:
Stored size: 701 Bytes
Contents
module Actions class Actions::ActionWithSubPlans < Actions::EntryAction middleware.use Actions::Middleware::KeepCurrentUser 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
28 entries across 28 versions & 1 rubygems