Module: CMDx::Workflow
- Defined in:
- lib/cmdx/workflow.rb
Overview
Defined Under Namespace
Modules: ClassMethods Classes: ExecutionGroup
Class Method Summary collapse
- .included(base) ⇒ void private
Instance Method Summary collapse
-
#work ⇒ void
Runs the workflow's pipeline.
Class Method Details
.included(base) ⇒ void
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
This method returns an undefined value.
107 108 109 110 111 112 113 114 115 116 |
# File 'lib/cmdx/workflow.rb', line 107 def self.included(base) unless base.is_a?(Class) && base <= Task raise ImplementationError, <<~MSG.chomp CMDx::Workflow can only be included in a CMDx::Task subclass (got #{base.inspect}). See https://drexed.github.io/cmdx/workflows/#declarations MSG end base.extend(ClassMethods) end |