summaryrefslogtreecommitdiff
path: root/bin/custodian-enqueue
diff options
context:
space:
mode:
Diffstat (limited to 'bin/custodian-enqueue')
-rwxr-xr-xbin/custodian-enqueue8
1 files changed, 4 insertions, 4 deletions
diff --git a/bin/custodian-enqueue b/bin/custodian-enqueue
index 83e462e..4d8b354 100755
--- a/bin/custodian-enqueue
+++ b/bin/custodian-enqueue
@@ -130,7 +130,7 @@ if __FILE__ == $PROGRAM_NAME then
# Connected to the queue - be it redis or beanstalkd
#
settings = Custodian::Settings.instance
- queue = Custodian::QueueType.create( settings.queue_type )
+ queue = Custodian::QueueType.create(settings.queue_type)
if ! queue
puts "Failed to connect to the #{settings.queue_type} queue"
exit 1
@@ -148,11 +148,11 @@ if __FILE__ == $PROGRAM_NAME then
# exit this script.
#
begin
- mon.parse_file( ENV['FILE'] )
+ mon.parse_file(ENV['FILE'])
rescue => e
puts "Failure in parsing the configuration file : #{ENV['FILE']}"
puts e.to_s
- exit( 1 )
+ exit(1)
end
mon.jobs.each do |test|
@@ -162,7 +162,7 @@ if __FILE__ == $PROGRAM_NAME then
elsif ENV['DUMP']
puts test
else
- queue.add( test.to_s )
+ queue.add(test.to_s)
end
end