Class: Actions::ActionWithSubPlans

Inherits:
EntryAction 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

Methods inherited from EntryAction

#action_subject, all_action_names, #delay, #drop_all_locks!, #humanized_input, #humanized_name, #resource_locks, serializer_class

Methods included from Helpers::Lock

#exclusive_lock!, #link!, #lock!

Methods included from Helpers::ArgsSerialization

#serialize_args

Methods inherited from Base

#already_running?, #humanized_errors, #humanized_input, #humanized_name, #notify_paused, #serializer_class, #task, #task_input, #task_output

Methods included from TaskSynchronization

included, #sync_execution_plan_to_task

Methods included from Helpers::LifecycleLogging

included, #log_task_state_change

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