Module: SSHKit::DSL

Defined in:
lib/sshkit/dsl.rb

Instance Method Summary collapse

Instance Method Details

#on(hosts, options = {}, &block) ⇒ Object



5
6
7
# File 'lib/sshkit/dsl.rb', line 5

def on(hosts, options={}, &block)
  Coordinator.new(hosts).each(options, &block)
end

#run_locally(&block) ⇒ Object



9
10
11
# File 'lib/sshkit/dsl.rb', line 9

def run_locally(&block)
  Backend::Local.new(&block).run
end