diff options
| author | Steve Kemp <steve@steve.org.uk> | 2012-11-20 14:00:31 +0000 | 
|---|---|---|
| committer | Steve Kemp <steve@steve.org.uk> | 2012-11-20 14:00:31 +0000 | 
| commit | ba3c4686787a5541110cf51bf374aa048efc91e2 (patch) | |
| tree | dd00b06dc5ab9a539d9ab07c6ed92bf1bdd2029e | |
| parent | 46576e24594242c20c06129f49044220cd59c90b (diff) | |
  Updated case statements for ruby1.9
| -rwxr-xr-x | bin/custodian-dequeue | 16 | ||||
| -rwxr-xr-x | bin/custodian-enqueue | 12 | ||||
| -rwxr-xr-x | bin/custodian-queue | 12 | ||||
| -rwxr-xr-x | bin/multi-ping | 4 | 
4 files changed, 22 insertions, 22 deletions
| diff --git a/bin/custodian-dequeue b/bin/custodian-dequeue index dd5daa6..70ddeda 100755 --- a/bin/custodian-dequeue +++ b/bin/custodian-dequeue @@ -84,21 +84,21 @@ if __FILE__ == $0 then                            )      opts.each do |opt, arg|        case opt -      when "--verbose": +      when "--verbose" then            ENV["VERBOSE"] = "1" -      when "--logfile": +      when "--logfile" then            $LOGFILE = arg -      when "--repeat": +      when "--repeat" then            ENV["REPEAT"] = arg -      when "--server": +      when "--server" then            $SERVER = arg -      when "--single": +      when "--single" then            ENV["SINGLE"] = "1" -      when "--fail": +      when "--fail" then            ENV["FAIL"] = "1" -      when "--help": +      when "--help" then            $help = true -      when "--manual": +      when "--manual" then            $manual = true        end      end diff --git a/bin/custodian-enqueue b/bin/custodian-enqueue index d6f041e..23df794 100755 --- a/bin/custodian-enqueue +++ b/bin/custodian-enqueue @@ -75,17 +75,17 @@ if __FILE__ == $0 then                            )      opts.each do |opt, arg|        case opt -      when "--dump": +      when "--dump" then            ENV["DUMP"] = "1" -      when "--test": +      when "--test" then            ENV["TEST"] = "1" -      when "--file": +      when "--file" then            ENV["FILE"] = arg -      when "--timeout": +      when "--timeout" then            ENV["TIMEOUT"] = arg -      when "--help": +      when "--help" then            $help = true -      when "--manual": +      when "--manual" then            $manual = true        end      end diff --git a/bin/custodian-queue b/bin/custodian-queue index f2003de..e75b5cc 100755 --- a/bin/custodian-queue +++ b/bin/custodian-queue @@ -67,17 +67,17 @@ if __FILE__ == $0 then                            )      opts.each do |opt, arg|        case opt -      when "--monitor": +      when "--monitor" then            $MONITOR = true -      when "--stats": +      when "--stats" then            $STATS = true -      when "--flush": +      when "--flush" then            $FLUSH = true -      when "--server": +      when "--server" then            $SERVER = arg -      when "--help": +      when "--help" then            $help = true -      when "--manual": +      when "--manual" then            $manual = true        end      end diff --git a/bin/multi-ping b/bin/multi-ping index 2d1477d..06232e4 100755 --- a/bin/multi-ping +++ b/bin/multi-ping @@ -50,9 +50,9 @@ opts = GetoptLong.new(  begin    opts.each do |opt,arg|      case opt -    when '--help' +    when '--help' then        $help = true -    when '--manual' +    when '--manual' then        $manual = true      end    end | 
