diff options
Diffstat (limited to 'lib/custodian/protocoltest/ldap.rb')
-rw-r--r-- | lib/custodian/protocoltest/ldap.rb | 29 |
1 files changed, 9 insertions, 20 deletions
diff --git a/lib/custodian/protocoltest/ldap.rb b/lib/custodian/protocoltest/ldap.rb index b27e5d6..ab703e5 100644 --- a/lib/custodian/protocoltest/ldap.rb +++ b/lib/custodian/protocoltest/ldap.rb @@ -20,26 +20,6 @@ module Custodian # - # 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 # def initialize( line ) @@ -55,6 +35,15 @@ 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 # if ( line =~ /on\s+([0-9]+)/ ) |