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.rb31
1 files changed, 11 insertions, 20 deletions
diff --git a/lib/custodian/protocoltest/ssh.rb b/lib/custodian/protocoltest/ssh.rb
index 205099e..0d64911 100644
--- a/lib/custodian/protocoltest/ssh.rb
+++ b/lib/custodian/protocoltest/ssh.rb
@@ -17,26 +17,6 @@ module Custodian
class SSHTest < TCPTest
-
- #
- # The line from which we were constructed.
- #
- attr_reader :line
-
-
- #
- # The host to test against.
- #
- attr_reader :host
-
-
- #
- # The port to connect to.
- #
- attr_reader :port
-
-
-
#
# Constructor
#
@@ -54,6 +34,17 @@ module Custodian
#
@host = line.split( /\s+/)[0]
+
+ #
+ # Is this test inverted?
+ #
+ if ( line =~ /must\s+not\s+run\s+/ )
+ @inverted = true
+ else
+ @inverted = false
+ end
+
+
#
# Save the port
#