Class: Cl::Runner::Multi
- Inherits:
-
Object
- Object
- Cl::Runner::Multi
- Defined in:
- lib/cl/runner/multi.rb
Instance Attribute Summary collapse
-
#cmds ⇒ Object
readonly
Returns the value of attribute cmds.
-
#ctx ⇒ Object
readonly
Returns the value of attribute ctx.
Instance Method Summary collapse
-
#initialize(ctx, *args) ⇒ Multi
constructor
A new instance of Multi.
- #run ⇒ Object
Constructor Details
#initialize(ctx, *args) ⇒ Multi
Returns a new instance of Multi.
8 9 10 11 |
# File 'lib/cl/runner/multi.rb', line 8 def initialize(ctx, *args) @ctx = ctx @cmds = build(group(args)) end |
Instance Attribute Details
#cmds ⇒ Object (readonly)
Returns the value of attribute cmds.
6 7 8 |
# File 'lib/cl/runner/multi.rb', line 6 def cmds @cmds end |
#ctx ⇒ Object (readonly)
Returns the value of attribute ctx.
6 7 8 |
# File 'lib/cl/runner/multi.rb', line 6 def ctx @ctx end |
Instance Method Details
#run ⇒ Object
13 14 15 |
# File 'lib/cl/runner/multi.rb', line 13 def run cmds.map(&:run) end |