Method: Eclair::Instance#ssh_cmd

Defined in:
lib/eclair/instance.rb

#ssh_cmdObject



91
92
93
94
95
96
97
# File 'lib/eclair/instance.rb', line 91

def ssh_cmd
  cmd = config.ssh_ports.map{ |port|
    "ssh #{config.ssh_options} -p#{port} #{key_cmd} #{username}@#{hostname}"
  }.join(" || ")

  "echo Attaching to #{name}: #{username}@#{hostname} && (#{cmd})"
end