diff options
| author | Steve Kemp <steve@steve.org.uk> | 2015-03-09 13:22:46 +0000 | 
|---|---|---|
| committer | Steve Kemp <steve@steve.org.uk> | 2015-03-09 13:22:46 +0000 | 
| commit | ddedddfa53dfe296eb8f0c58e1b9ff86f8301d4d (patch) | |
| tree | 24c39cd8770762e37f96886f0894ba4616ab5ccb /lib/custodian/protocoltest | |
| parent | d07ac8ecbedb4831e5aa677b8878f0e8eb37e363 (diff) | |
More minor space fixups
Diffstat (limited to 'lib/custodian/protocoltest')
| -rw-r--r-- | lib/custodian/protocoltest/ldap.rb | 2 | ||||
| -rw-r--r-- | lib/custodian/protocoltest/mx.rb | 2 | ||||
| -rw-r--r-- | lib/custodian/protocoltest/smtprelay.rb | 2 | ||||
| -rw-r--r-- | lib/custodian/protocoltest/ssl.rb | 8 | ||||
| -rw-r--r-- | lib/custodian/protocoltest/tcp.rb | 2 | 
5 files changed, 8 insertions, 8 deletions
| diff --git a/lib/custodian/protocoltest/ldap.rb b/lib/custodian/protocoltest/ldap.rb index ed75ae7..d7e58fa 100644 --- a/lib/custodian/protocoltest/ldap.rb +++ b/lib/custodian/protocoltest/ldap.rb @@ -117,7 +117,7 @@ module Custodian              #              # Search              # -            ldap.search(base,scope,filter,attrs)  { |entry| +            ldap.search(base, scope, filter, attrs)  { |entry|                puts "We found an LDAP result #{entry.vals('cn')}"              }              ldap.unbind diff --git a/lib/custodian/protocoltest/mx.rb b/lib/custodian/protocoltest/mx.rb index c323af7..2d0bcc2 100644 --- a/lib/custodian/protocoltest/mx.rb +++ b/lib/custodian/protocoltest/mx.rb @@ -115,7 +115,7 @@ module Custodian                  # trim to a sane length & strip newlines.                  if  !read.nil?  -                  read = read[0,255] +                  read = read[0, 255]                    read.gsub!(/[\n\r]/, '')                  end diff --git a/lib/custodian/protocoltest/smtprelay.rb b/lib/custodian/protocoltest/smtprelay.rb index 0a98a9d..6b1f721 100644 --- a/lib/custodian/protocoltest/smtprelay.rb +++ b/lib/custodian/protocoltest/smtprelay.rb @@ -86,7 +86,7 @@ module Custodian          begin -          Net::SMTP.start(@host,@port, get_hostname) do |smtp| +          Net::SMTP.start(@host, @port, get_hostname) do |smtp|              sent    = smtp.send_message message, 'noreply@bytemark.co.uk', 'noreply@bytemark.co.uk'              @status = sent.status.to_s diff --git a/lib/custodian/protocoltest/ssl.rb b/lib/custodian/protocoltest/ssl.rb index e34e770..4c5343e 100644 --- a/lib/custodian/protocoltest/ssl.rb +++ b/lib/custodian/protocoltest/ssl.rb @@ -263,7 +263,7 @@ class SSLCheck      # Check that the certificate is current      #      if self.certificate.not_before < Time.now -      verbose  "The certificate for #{self.domain} is valid from #{self.certificate.not_before}." +      verbose "The certificate for #{self.domain} is valid from #{self.certificate.not_before}."        return true      else        self.errors << verbose("The certificate for #{self.domain} *is not valid yet*.") @@ -280,7 +280,7 @@ class SSLCheck      days_until_expiry = (self.certificate.not_after.to_i - Time.now.to_i) / (24.0 * 3600).floor.to_i      if days_until_expiry > 14 -      verbose  "The certificate for #{self.domain} is valid until #{self.certificate.not_after}." +      verbose "The certificate for #{self.domain} is valid until #{self.certificate.not_after}."        return true      else        if days_until_expiry > 0 @@ -305,7 +305,7 @@ class SSLCheck      # certificate is self-signed.      #      if self.key.is_a?(OpenSSL::PKey) and self.certificate.verify(self.key) -      verbose  "Using a self-signed certificate for #{self.domain}." +      verbose "Using a self-signed certificate for #{self.domain}."        return true      # @@ -313,7 +313,7 @@ class SSLCheck      # including any bundle that has been uploaded.      #      elsif self.certificate_store.is_a?(OpenSSL::X509::Store) and self.certificate_store.verify(self.certificate) -      verbose  "Certificate signed by #{self.certificate.issuer}" +      verbose "Certificate signed by #{self.certificate.issuer}"        return true      # diff --git a/lib/custodian/protocoltest/tcp.rb b/lib/custodian/protocoltest/tcp.rb index eb00e99..367cf78 100644 --- a/lib/custodian/protocoltest/tcp.rb +++ b/lib/custodian/protocoltest/tcp.rb @@ -279,7 +279,7 @@ module Custodian                # trim to a sane length & strip newlines.                if  !read.nil?  -                read = read[0,255] +                read = read[0, 255]                  read.gsub!(/[\n\r]/, '')                end | 
