Class: WIP::Runner::Workflow::Builder
- Inherits:
-
Object
- Object
- WIP::Runner::Workflow::Builder
- Defined in:
- lib/wip/runner/workflow/builder.rb
Defined Under Namespace
Classes: Component, Step, Task, Workflow
Instance Method Summary collapse
- #build(arguments, options) ⇒ Object
-
#initialize(command, &block) ⇒ Builder
constructor
A new instance of Builder.
Constructor Details
#initialize(command, &block) ⇒ Builder
Returns a new instance of Builder.
5 6 7 8 |
# File 'lib/wip/runner/workflow/builder.rb', line 5 def initialize(command, &block) @command = command @block = block end |
Instance Method Details
#build(arguments, options) ⇒ Object
10 11 12 13 14 |
# File 'lib/wip/runner/workflow/builder.rb', line 10 def build(arguments, ) workflow = Workflow.new(@command) workflow.instance_exec(arguments, , &@block) workflow end |