summaryrefslogtreecommitdiff
path: root/lib/custodian/alertfactory.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
commite716a49dabe2c086a97e2d8b3cffe5cf369ad026 (patch)
treee7e98125f89941db4c9d0f48f2df9c410467a3d8 /lib/custodian/alertfactory.rb
parentaf2ee063abea8235a8cbd1448533e4f4fbc0d0af (diff)
Removed spaces inside parenthesis.
Diffstat (limited to 'lib/custodian/alertfactory.rb')
-rw-r--r--lib/custodian/alertfactory.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/custodian/alertfactory.rb b/lib/custodian/alertfactory.rb
index 78ad9cf..1baa0e3 100644
--- a/lib/custodian/alertfactory.rb
+++ b/lib/custodian/alertfactory.rb
@@ -44,14 +44,14 @@ module Custodian
# The "obj" here is the test-case that will be generating the
# raise/clear event.
#
- def self.create( alert_type, obj )
+ def self.create(alert_type, obj)
raise ArgumentError, 'The type of notifier to create cannot be nil' if alert_type.nil?
raise ArgumentError, 'The type of notifier to create must be a string' unless alert_type.kind_of? String
c = @@subclasses[alert_type]
if c
- c.new( obj )
+ c.new(obj)
else
raise ArgumentError, "Bad alert type: '#{alert_type}'"
end
@@ -81,7 +81,7 @@ module Custodian
#
def get_type
@@subclasses.each do |name,value|
- if ( value == self.class )
+ if (value == self.class)
return name
end
end
@@ -93,7 +93,7 @@ module Custodian
#
# Set the target for this alert.
#
- def set_target( target )
+ def set_target(target)
@target = target
end
@@ -102,7 +102,7 @@ module Custodian
#
# Store a reference to the settings
#
- def set_settings( obj )
+ def set_settings(obj)
@settings = obj
end