summaryrefslogtreecommitdiff
path: root/lib/custodian/protocoltest/ping.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/custodian/protocoltest/ping.rb')
-rw-r--r--lib/custodian/protocoltest/ping.rb24
1 files changed, 10 insertions, 14 deletions
diff --git a/lib/custodian/protocoltest/ping.rb b/lib/custodian/protocoltest/ping.rb
index c13c17c..95b387c 100644
--- a/lib/custodian/protocoltest/ping.rb
+++ b/lib/custodian/protocoltest/ping.rb
@@ -19,20 +19,6 @@ module Custodian
#
- # The line from which we were constructed.
- #
- attr_reader :line
-
-
- #
- # The host to test against.
- #
- attr_reader :host
-
-
-
-
- #
# Constructor
#
def initialize( line )
@@ -46,6 +32,16 @@ module Custodian
# Save the host
#
@host = line.split( /\s+/)[0]
+
+ #
+ # Is this test inverted?
+ #
+ if ( line =~ /must\s+not\s+run\s+/ )
+ @inverted = true
+ else
+ @inverted = false
+ end
+
end