Method: ESX::Host#remote_command

Defined in:
lib/esx.rb

#remote_command(cmd) ⇒ Object

Run a command in the ESX host via SSH



182
183
184
185
186
# File 'lib/esx.rb', line 182

def remote_command(cmd)
  Net::SSH.start(@address, @user, :password => @password) do |ssh|
    ssh.exec! cmd
  end
end