Sha256: 3d908b85440334691260fcd5a595e7eb2aa64efd8614ef410a8a26697500fa8f

Contents?: true

Size: 388 Bytes

Versions: 4

Compression:

Stored size: 388 Bytes

Contents

module DeepTest
  module Distributed
    class SshClientConnectionInfo
      attr_reader :address

      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
    end
  end
end

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
deep_test_pre-2.0 lib/deep_test/distributed/ssh_client_connection_info.rb
jstorimer-deep-test-2.0.0 lib/deep_test/distributed/ssh_client_connection_info.rb
jstorimer-deep-test-0.2.0 lib/deep_test/distributed/ssh_client_connection_info.rb
jstorimer-deep-test-0.1.0 lib/deep_test/distributed/ssh_client_connection_info.rb