Method: Fog::Bluebox::Compute::Server#ssh

Defined in:
lib/fog/compute/models/bluebox/server.rb

#ssh(commands) ⇒ Object



114
115
116
117
118
119
120
# File 'lib/fog/compute/models/bluebox/server.rb', line 114

def ssh(commands)
  requires :identity, :ips, :username

  options = {}
  options[:key_data] = [private_key] if private_key
  Fog::SSH.new(ips.first['address'], username, options).run(commands)
end