Class: DeepTest::Distributed::SshClientConnectionInfo
- Inherits:
-
Object
- Object
- DeepTest::Distributed::SshClientConnectionInfo
- Defined in:
- lib/deep_test/distributed/ssh_client_connection_info.rb
Instance Attribute Summary collapse
-
#address ⇒ Object
readonly
Returns the value of attribute address.
Instance Method Summary collapse
-
#initialize ⇒ SshClientConnectionInfo
constructor
A new instance of SshClientConnectionInfo.
Constructor Details
#initialize ⇒ SshClientConnectionInfo
Returns a new instance of SshClientConnectionInfo.
6 7 8 9 10 11 |
# File 'lib/deep_test/distributed/ssh_client_connection_info.rb', line 6 def initialize raise "SSH_CLIENT environment variable not set" unless ENV['SSH_CLIENT'] ENV['SSH_CLIENT'] =~ /^(.+) \d+ \d+$/ raise "Unable to extract address from SSH_CLIENT (#{ENV['SSH_CLIENT']})" unless $1 @address = $1 end |
Instance Attribute Details
#address ⇒ Object (readonly)
Returns the value of attribute address.
4 5 6 |
# File 'lib/deep_test/distributed/ssh_client_connection_info.rb', line 4 def address @address end |