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
commit54b21cf54c51dfe40784a8096f84c7a80b015bd4 (patch)
tree4763692624732650daf1a9e02c91576d3f7ee8d0 /lib/custodian/alertfactory.rb
parenta22b8e96ead33b0f97ed5243dbad7f7b6cd5135d (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