diff options
Diffstat (limited to 'lib/custodian/protocoltest/ftp.rb')
-rw-r--r-- | lib/custodian/protocoltest/ftp.rb | 30 |
1 files changed, 9 insertions, 21 deletions
diff --git a/lib/custodian/protocoltest/ftp.rb b/lib/custodian/protocoltest/ftp.rb index a816bfd..25271c6 100644 --- a/lib/custodian/protocoltest/ftp.rb +++ b/lib/custodian/protocoltest/ftp.rb @@ -19,27 +19,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 ) @@ -58,6 +37,15 @@ module Custodian end # + # 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]+)/ ) |