Class: Cow::ACS::SSH::Server

Inherits:
Tmpl::Server show all
Includes:
Cow::ACS::Server
Defined in:
lib/cow/plugins/acs.rb

Instance Attribute Summary

Attributes inherited from Tmpl::Server

#hostname

Instance Method Summary collapse

Methods included from Cow::ACS::Server

#get_ports, #port

Methods inherited from Tmpl::Server

#connect, #find, #initialize, #port, #ports, #update_ports

Constructor Details

This class inherits a constructor from Cow::Tmpl::Server

Instance Method Details

#connect_command(_port, _user = ) ⇒ Object



50
51
52
# File 'lib/cow/plugins/acs.rb', line 50

def connect_command(_port, _user = ENV['USER'])
  "ssh -l #{_user}:#{port(_port).tcp_port} #{@hostname}"
end