Class: Cow::DIGI_TS::Telnet::Server
- Inherits:
-
Tmpl::Server
- Object
- Tmpl::Server
- Cow::DIGI_TS::Telnet::Server
- Defined in:
- lib/cow/plugins/digi_ts.rb
Instance Attribute Summary
Attributes inherited from Tmpl::Server
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
19 20 21 22 |
# File 'lib/cow/plugins/digi_ts.rb', line 19 def connect_command(_port, _user = ENV['USER']) # "ssh -l #{_user}:#{port(_port).tcp_port+500} #{@hostname}" "telnet #{@hostname} #{port(_port).tcp_port}" end |
#port(_port) ⇒ Object
14 15 16 17 |
# File 'lib/cow/plugins/digi_ts.rb', line 14 def port(_port) return _port if _port.class == Cow::DIGI_TS::Port super end |