summaryrefslogtreecommitdiff
path: root/lib/custodian/protocoltest/ssh.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/custodian/protocoltest/ssh.rb')
-rw-r--r--lib/custodian/protocoltest/ssh.rb16
1 files changed, 16 insertions, 0 deletions
diff --git a/lib/custodian/protocoltest/ssh.rb b/lib/custodian/protocoltest/ssh.rb
index ec7752f..18f13bc 100644
--- a/lib/custodian/protocoltest/ssh.rb
+++ b/lib/custodian/protocoltest/ssh.rb
@@ -60,6 +60,22 @@ class SSHTest < TCPTest
#
+ # Convert this class to JSON such that it may be
+ # serialized.
+ #
+ def to_json
+ hash = {
+ :test_type => 'ssh',
+ :test_target => @host,
+ :test_port => @port
+ }
+ hash.to_json
+ end
+
+
+
+
+ #
# Run the TCP-protocol test.
#
def run_test