Class: Dynflow::Action::Missing
- Inherits:
-
Dynflow::Action
- Object
- Serializable
- Dynflow::Action
- Dynflow::Action::Missing
- Defined in:
- lib/dynflow/action/missing.rb
Overview
for cases the serialized action was renamed and it’s not available in the code base anymore.
Constant Summary
Constants inherited from Dynflow::Action
ERROR, OutputReference, SUSPEND, Skip
Constants included from Rescue
Rescue::Strategy, Rescue::SuggestedStrategy
Instance Attribute Summary
Attributes inherited from Dynflow::Action
#execution_plan_id, #finalize_step_id, #id, #input, #phase, #plan_step_id, #run_step_id, #world
Attributes included from Progress
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from Dynflow::Action
#action_logger, all_children, #all_planned_actions, children, constantize, #error, #execute, #execution_plan, #finalize_step, #from_subscription?, inherited, #initialize, middleware, #output, #output=, #phase!, #phase?, #plan_step, #planned_actions, #required_step_ids, #run_step, #set_plan_context, #state, #steps, subscribe, #to_hash, #trigger
Methods included from Format
Methods included from Rescue
#combine_suggested_strategies, #rescue_strategy, #rescue_strategy_for_planned_action, #rescue_strategy_for_self
Methods included from Progress
#finalize_progress, #finalize_progress_weight, #run_progress, #run_progress_weight
Methods inherited from Serializable
constantize, from_hash, new_from_hash, #to_hash
Constructor Details
This class inherits a constructor from Dynflow::Action
Class Method Details
.generate(action_name) ⇒ Object
6 7 8 9 10 11 12 |
# File 'lib/dynflow/action/missing.rb', line 6 def self.generate(action_name) Class.new(self).tap do |klass| klass.singleton_class.send(:define_method, :name) do action_name end end end |
Instance Method Details
#finalize ⇒ Object
22 23 24 |
# File 'lib/dynflow/action/missing.rb', line 22 def finalize raise StandardError, "This action is not meant to be finalized" end |
#plan(*args) ⇒ Object
14 15 16 |
# File 'lib/dynflow/action/missing.rb', line 14 def plan(*args) raise StandardError, "This action is not meant to be planned" end |
#run ⇒ Object
18 19 20 |
# File 'lib/dynflow/action/missing.rb', line 18 def run raise StandardError, "This action is not meant to be run" end |