diff options
author | Steve Kemp <steve@steve.org.uk> | 2015-03-09 13:19:47 +0000 |
---|---|---|
committer | Steve Kemp <steve@steve.org.uk> | 2015-03-09 13:19:47 +0000 |
commit | 54b21cf54c51dfe40784a8096f84c7a80b015bd4 (patch) | |
tree | 4763692624732650daf1a9e02c91576d3f7ee8d0 /lib/custodian/protocoltest/smtprelay.rb | |
parent | a22b8e96ead33b0f97ed5243dbad7f7b6cd5135d (diff) |
Removed spaces inside parenthesis.
Diffstat (limited to 'lib/custodian/protocoltest/smtprelay.rb')
-rw-r--r-- | lib/custodian/protocoltest/smtprelay.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/custodian/protocoltest/smtprelay.rb b/lib/custodian/protocoltest/smtprelay.rb index ef07f82..0a98a9d 100644 --- a/lib/custodian/protocoltest/smtprelay.rb +++ b/lib/custodian/protocoltest/smtprelay.rb @@ -24,9 +24,9 @@ module Custodian # # Save away state from the configuration line. # - def initialize( line ) + def initialize(line) @line = line - @host = line.split( /\s+/)[0] + @host = line.split(/\s+/)[0] # # Save the port @@ -63,8 +63,8 @@ module Custodian def get_hostname hostname = 'localhost.localdomain' - if File.exist?( '/etc/hostname' ) - File.readlines('/etc/hostname' ).each do |line| + if File.exist?('/etc/hostname') + File.readlines('/etc/hostname').each do |line| hostname = line if !line.nil? hostname.chomp! end @@ -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 |