summaryrefslogtreecommitdiff
path: root/bin
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 /bin
parentaf2ee063abea8235a8cbd1448533e4f4fbc0d0af (diff)
Removed spaces inside parenthesis.
Diffstat (limited to 'bin')
-rwxr-xr-xbin/custodian-dequeue2
-rwxr-xr-xbin/custodian-enqueue8
-rwxr-xr-xbin/custodian-queue4
-rwxr-xr-xbin/multi-ping4
4 files changed, 9 insertions, 9 deletions
diff --git a/bin/custodian-dequeue b/bin/custodian-dequeue
index 7a4b629..3d0c851 100755
--- a/bin/custodian-dequeue
+++ b/bin/custodian-dequeue
@@ -130,7 +130,7 @@ if __FILE__ == $PROGRAM_NAME then
# Create the worker, passing it the settings object so it can
# sort out its own logfile, etc.
#
- worker = Custodian::Worker.new( settings )
+ worker = Custodian::Worker.new(settings)
#
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
diff --git a/bin/custodian-queue b/bin/custodian-queue
index 26f214d..e793657 100755
--- a/bin/custodian-queue
+++ b/bin/custodian-queue
@@ -125,7 +125,7 @@ if __FILE__ == $PROGRAM_NAME then
# Create the queue object.
#
settings = Custodian::Settings.instance
- queue = Custodian::QueueType.create( settings.queue_type )
+ queue = Custodian::QueueType.create(settings.queue_type)
#
# Alerting on a queue that is too-full?
@@ -151,7 +151,7 @@ if __FILE__ == $PROGRAM_NAME then
if $STATS
jobs = queue.size?
puts "There are #{jobs || 0} jobs pending."
- exit( 0 )
+ exit(0)
end
diff --git a/bin/multi-ping b/bin/multi-ping
index 9760b35..118fe66 100755
--- a/bin/multi-ping
+++ b/bin/multi-ping
@@ -45,7 +45,7 @@ $manual = false
opts = GetoptLong.new(
[ '--help', '-h', GetoptLong::NO_ARGUMENT ],
- [ '--manual', '-m', GetoptLong::NO_ARGUMENT ] )
+ [ '--manual', '-m', GetoptLong::NO_ARGUMENT ])
begin
opts.each do |opt,arg|
@@ -115,7 +115,7 @@ end
#
# Create the object
#
-helper = Custodian::Util::Ping.new( hostname )
+helper = Custodian::Util::Ping.new(hostname)
#