diff options
author | Steve Kemp <steve@steve.org.uk> | 2012-11-21 23:34:23 +0000 |
---|---|---|
committer | Steve Kemp <steve@steve.org.uk> | 2012-11-21 23:34:23 +0000 |
commit | 31fdb85b20719eb2dab4d6e3cfea721e6c58ac08 (patch) | |
tree | 430e54909f8969f26670c7e8873696ae2666bd80 /lib/custodian/protocoltest/ssh.rb | |
parent | 7d153d8f22fc767108103cd8fdfc056e2656b914 (diff) |
Serialize and cosntruct neatly
Diffstat (limited to 'lib/custodian/protocoltest/ssh.rb')
-rw-r--r-- | lib/custodian/protocoltest/ssh.rb | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/lib/custodian/protocoltest/ssh.rb b/lib/custodian/protocoltest/ssh.rb index 18f13bc..78e8e67 100644 --- a/lib/custodian/protocoltest/ssh.rb +++ b/lib/custodian/protocoltest/ssh.rb @@ -13,6 +13,12 @@ class SSHTest < TCPTest # + # The line from which we were constructed. + # + attr_reader :line + + + # # The host to test against. # attr_reader :host @@ -31,6 +37,12 @@ class SSHTest < TCPTest # Ensure we received a port to run the test against. # def initialize( line ) + + # + # Save the line + # + @line = line + # # Save the host # @@ -64,11 +76,7 @@ class SSHTest < TCPTest # serialized. # def to_json - hash = { - :test_type => 'ssh', - :test_target => @host, - :test_port => @port - } + hash = { :line => @line } hash.to_json end |