From e716a49dabe2c086a97e2d8b3cffe5cf369ad026 Mon Sep 17 00:00:00 2001 From: Steve Kemp Date: Mon, 9 Mar 2015 13:19:47 +0000 Subject: Removed spaces inside parenthesis. --- bin/custodian-dequeue | 2 +- bin/custodian-enqueue | 8 ++++---- bin/custodian-queue | 4 ++-- bin/multi-ping | 4 ++-- 4 files changed, 9 insertions(+), 9 deletions(-) (limited to 'bin') 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) # -- cgit v1.2.1