Method: Automate::Chain.which

Defined in:
lib/automate/chain.rb

.which(task, &block) ⇒ Object

Factory method that creates a new command chain.



12
13
14
15
16
# File 'lib/automate/chain.rb', line 12

def self.which(task, &block)
  c = new(task)
  c.instance_exec(&block)
  c
end