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 | e716a49dabe2c086a97e2d8b3cffe5cf369ad026 (patch) | |
tree | e7e98125f89941db4c9d0f48f2df9c410467a3d8 /lib/custodian/protocoltest/smtprelay.rb | |
parent | af2ee063abea8235a8cbd1448533e4f4fbc0d0af (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 |