Class: Cl::Runner::Multi

Inherits:
Object
  • Object
show all
Defined in:
lib/cl/runner/multi.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#cmdsObject (readonly)

Returns the value of attribute cmds.



6
7
8
# File 'lib/cl/runner/multi.rb', line 6

def cmds
  @cmds
end

#ctxObject (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

#runObject



13
14
15
# File 'lib/cl/runner/multi.rb', line 13

def run
  cmds.map(&:run)
end