summaryrefslogtreecommitdiff
path: root/lib/custodian/alerts/file.rb
diff options
context:
space:
mode:
authorSteve Kemp <steve@steve.org.uk>2015-03-09 13:19:47 +0000
committerSteve Kemp <steve@steve.org.uk>2015-03-09 13:19:47 +0000
commit54b21cf54c51dfe40784a8096f84c7a80b015bd4 (patch)
tree4763692624732650daf1a9e02c91576d3f7ee8d0 /lib/custodian/alerts/file.rb
parenta22b8e96ead33b0f97ed5243dbad7f7b6cd5135d (diff)
Removed spaces inside parenthesis.
Diffstat (limited to 'lib/custodian/alerts/file.rb')
-rw-r--r--lib/custodian/alerts/file.rb14
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/custodian/alerts/file.rb b/lib/custodian/alerts/file.rb
index cb04084..06a704e 100644
--- a/lib/custodian/alerts/file.rb
+++ b/lib/custodian/alerts/file.rb
@@ -21,7 +21,7 @@ module Custodian
#
# Constructor - save the test-object away.
#
- def initialize( obj )
+ def initialize(obj)
@test = obj
end
@@ -31,15 +31,15 @@ module Custodian
# Record a raise event for the given test.
#
def raise
- write_message( "RAISE: #{test.target} failed #{test.get_type}-test - #{test.error}" )
+ write_message("RAISE: #{test.target} failed #{test.get_type}-test - #{test.error}")
end
#
# Record the duration of the given test.
#
- def duration( seconds )
- write_message( "#{test.get_type}-test against #{test.target} took #{seconds}ms to complete" )
+ def duration(seconds)
+ write_message("#{test.get_type}-test against #{test.target} took #{seconds}ms to complete")
end
@@ -47,16 +47,16 @@ module Custodian
# Record a clear event for the given test.
#
def clear
- write_message( "CLEAR: #{test.target} failed #{test.get_type}-test" )
+ write_message("CLEAR: #{test.target} failed #{test.get_type}-test")
end
#
# Write the actual message to our target.
#
- def write_message( msg )
+ def write_message(msg)
file = File.open(@target, 'a')
- file.puts( "#{Time.now} #{msg}" )
+ file.puts("#{Time.now} #{msg}")
file.close
end