Class: Cow::ACS5000::Server

Inherits:
Tmpl::Server show all
Defined in:
lib/cow/plugins/acs5000.rb

Instance Attribute Summary

Attributes inherited from Tmpl::Server

#hostname

Instance Method Summary collapse

Methods inherited from Tmpl::Server

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

Constructor Details

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

Instance Method Details

#connect_command(_port, _user = ENV['USER']) ⇒ Object



18
19
20
# File 'lib/cow/plugins/acs5000.rb', line 18

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

#port(_port) ⇒ Object



13
14
15
16
# File 'lib/cow/plugins/acs5000.rb', line 13

def port(_port)
  return _port if _port.class == Cow::ACS5000::Port
  super
end