summaryrefslogtreecommitdiff
path: root/lib/custodian/protocoltest/rsync.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/custodian/protocoltest/rsync.rb')
-rw-r--r--lib/custodian/protocoltest/rsync.rb15
1 files changed, 15 insertions, 0 deletions
diff --git a/lib/custodian/protocoltest/rsync.rb b/lib/custodian/protocoltest/rsync.rb
index 3b63465..c35758e 100644
--- a/lib/custodian/protocoltest/rsync.rb
+++ b/lib/custodian/protocoltest/rsync.rb
@@ -59,6 +59,21 @@ class RSYNCTest < TCPTest
#
+ # Convert this class to JSON such that it may be serialized.
+ #
+ def to_json
+ hash = {
+ :test_type => 'rsync',
+ :test_target => @host,
+ :test_port => @port,
+ }
+ hash.to_json
+ end
+
+
+
+
+ #
# Run the protocol test.
#
def run_test