Method: Gusteau::SSH#conn
- Defined in:
- lib/gusteau/ssh.rb
#conn ⇒ Object
9 10 11 12 13 14 15 16 17 |
# File 'lib/gusteau/ssh.rb', line 9 def conn @conn ||= begin opts = { :port => port } opts.update(:password => password) if @password log "#setting up ssh connection #{@user}@#{host}, #{opts.inspect})" do Net::SSH.start(host, @user, opts) end end end |