summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rwxr-xr-xbin/custodian-dequeue26
-rwxr-xr-xbin/custodian-enqueue26
-rwxr-xr-xbin/custodian-queue20
3 files changed, 36 insertions, 36 deletions
diff --git a/bin/custodian-dequeue b/bin/custodian-dequeue
index 48dea57..7a4b629 100755
--- a/bin/custodian-dequeue
+++ b/bin/custodian-dequeue
@@ -69,23 +69,23 @@ if __FILE__ == $PROGRAM_NAME then
begin
opts = GetoptLong.new(
- [ "--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 ]
+ [ '--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
- ENV["VERBOSE"] = "1"
- when "--single" then
- ENV["SINGLE"] = "1"
- when "--fail" then
- ENV["FAIL"] = "1"
- when "--help" then
+ when '--verbose' then
+ ENV['VERBOSE'] = '1'
+ when '--single' then
+ ENV['SINGLE'] = '1'
+ when '--fail' then
+ ENV['FAIL'] = '1'
+ when '--help' then
$help = true
- when "--manual" then
+ when '--manual' then
$manual = true
end
end
diff --git a/bin/custodian-enqueue b/bin/custodian-enqueue
index b1be84d..83e462e 100755
--- a/bin/custodian-enqueue
+++ b/bin/custodian-enqueue
@@ -70,23 +70,23 @@ if __FILE__ == $PROGRAM_NAME then
begin
opts = GetoptLong.new(
- [ "--dump", "-d", GetoptLong::NO_ARGUMENT ],
- [ "--test", GetoptLong::NO_ARGUMENT ],
- [ "--file", "-f", GetoptLong::REQUIRED_ARGUMENT ],
- [ "--help", "-h", GetoptLong::NO_ARGUMENT ],
- [ "--manual","-m", GetoptLong::NO_ARGUMENT ]
+ [ '--dump', '-d', GetoptLong::NO_ARGUMENT ],
+ [ '--test', GetoptLong::NO_ARGUMENT ],
+ [ '--file', '-f', GetoptLong::REQUIRED_ARGUMENT ],
+ [ '--help', '-h', GetoptLong::NO_ARGUMENT ],
+ [ '--manual','-m', GetoptLong::NO_ARGUMENT ]
)
opts.each do |opt, arg|
case opt
- when "--dump" then
- ENV["DUMP"] = "1"
- when "--test" then
- ENV["TEST"] = "1"
- when "--file" then
- ENV["FILE"] = arg
- when "--help" then
+ when '--dump' then
+ ENV['DUMP'] = '1'
+ when '--test' then
+ ENV['TEST'] = '1'
+ when '--file' then
+ ENV['FILE'] = arg
+ when '--help' then
$help = true
- when "--manual" then
+ when '--manual' then
$manual = true
end
end
diff --git a/bin/custodian-queue b/bin/custodian-queue
index 66bf2ba..26f214d 100755
--- a/bin/custodian-queue
+++ b/bin/custodian-queue
@@ -63,27 +63,27 @@ if __FILE__ == $PROGRAM_NAME then
begin
opts = GetoptLong.new(
- [ "--flush", "-f", GetoptLong::NO_ARGUMENT ],
- [ "--help", "-h", GetoptLong::NO_ARGUMENT ],
- [ "--manual", "-m", GetoptLong::NO_ARGUMENT ],
- [ "--monitor", "-M", GetoptLong::OPTIONAL_ARGUMENT ],
- [ "--stats", "-s", GetoptLong::NO_ARGUMENT ]
+ [ '--flush', '-f', GetoptLong::NO_ARGUMENT ],
+ [ '--help', '-h', GetoptLong::NO_ARGUMENT ],
+ [ '--manual', '-m', GetoptLong::NO_ARGUMENT ],
+ [ '--monitor', '-M', GetoptLong::OPTIONAL_ARGUMENT ],
+ [ '--stats', '-s', GetoptLong::NO_ARGUMENT ]
)
opts.each do |opt, arg|
case opt
- when "--monitor" then
+ when '--monitor' then
if arg
$MONITOR = arg.to_i
else
$MONITOR = 5000
end
- when "--stats" then
+ when '--stats' then
$STATS = true
- when "--flush" then
+ when '--flush' then
$FLUSH = true
- when "--help" then
+ when '--help' then
$help = true
- when "--manual" then
+ when '--manual' then
$manual = true
end
end