summaryrefslogtreecommitdiff
path: root/bin/custodian-dequeue
diff options
context:
space:
mode:
authorSteve Kemp <steve@steve.org.uk>2016-04-22 21:23:32 +0300
committerSteve Kemp <steve@steve.org.uk>2016-04-22 21:23:32 +0300
commitfdb5aa7bb41c9a11a2dfdcdb12f00f95f37e2072 (patch)
tree107279e870e96c884490dbeab9be3bda93429155 /bin/custodian-dequeue
parent95a1fa2355f2b6352f1929122815504f98f4b4de (diff)
Updated to fix rubocop warnings.
Diffstat (limited to 'bin/custodian-dequeue')
-rwxr-xr-xbin/custodian-dequeue14
1 files changed, 7 insertions, 7 deletions
diff --git a/bin/custodian-dequeue b/bin/custodian-dequeue
index 8896b14..b066e18 100755
--- a/bin/custodian-dequeue
+++ b/bin/custodian-dequeue
@@ -29,12 +29,12 @@ if __FILE__ == $PROGRAM_NAME
begin
opts = GetoptLong.new(
- ['--help', '-h', GetoptLong::NO_ARGUMENT],
- ['--manual', '-m', GetoptLong::NO_ARGUMENT],
- ['--fail', '-f', GetoptLong::NO_ARGUMENT],
- ['--single', '-s', GetoptLong::NO_ARGUMENT],
+ ['--help', '-h', GetoptLong::NO_ARGUMENT],
+ ['--manual', '-m', GetoptLong::NO_ARGUMENT],
+ ['--fail', '-f', GetoptLong::NO_ARGUMENT],
+ ['--single', '-s', GetoptLong::NO_ARGUMENT],
['--verbose', '-v', GetoptLong::NO_ARGUMENT]
- )
+ )
opts.each do |opt, _arg|
case opt
when '--verbose' then
@@ -73,7 +73,7 @@ if __FILE__ == $PROGRAM_NAME
#
# Single step?
#
- if ENV['SINGLE']
+ if ENV['SINGLE']
worker.process_single_job
exit(0)
end
@@ -81,7 +81,7 @@ if __FILE__ == $PROGRAM_NAME
#
# Run until we see a failure?
#
- if ENV['FAIL']
+ if ENV['FAIL']
worker.process_until_fail
exit(0)
end