Class: Chef::Fork::Commands::Ssh

Inherits:
Noop
  • Object
show all
Defined in:
lib/chef/fork/commands/ssh.rb

Direct Known Subclasses

Bootstrap

Instance Method Summary collapse

Methods inherited from Noop

#initialize

Constructor Details

This class inherits a constructor from Chef::Fork::Commands::Noop

Instance Method Details

#run(args = []) ⇒ Object



12
13
14
15
16
17
18
# File 'lib/chef/fork/commands/ssh.rb', line 12

def run(args=[])
  rest = order_args(args)
  rest = rest.dup
  if hostname = rest.shift
    ssh(hostname, rest)
  end
end