Class: Actions::ActionWithSubPlans

Inherits:
EntryAction
  • Object
show all
Includes:
Dynflow::Action::V2::WithSubPlans
Defined in:
app/lib/actions/action_with_sub_plans.rb

Direct Known Subclasses

BulkAction

Instance Method Summary collapse

Instance Method Details

#humanized_outputObject



9
10
11
12
13
14
15
# File 'app/lib/actions/action_with_sub_plans.rb', line 9

def humanized_output
  return unless counts_set?
  _('%{total} task(s), %{success} success, %{failed} fail') %
    { total:   total_count,
      success: output[:success_count],
      failed:  output[:failed_count] }
end

#plan(*_args) ⇒ Object

Raises:

  • (NotImplementedError)


5
6
7
# File 'app/lib/actions/action_with_sub_plans.rb', line 5

def plan(*_args)
  raise NotImplementedError
end