]> git.donarmstrong.com Git - dsa-puppet.git/commitdiff
Make postbaculajob work with wheezy's ruby
authorPeter Palfrader <peter@palfrader.org>
Tue, 1 Jan 2013 13:06:22 +0000 (14:06 +0100)
committerPeter Palfrader <peter@palfrader.org>
Tue, 1 Jan 2013 13:06:30 +0000 (14:06 +0100)
modules/bacula/files/postbaculajob

index 9662d7837fa0d68b65db4e6365361758bdbc3247..2093fde70702d3aedf8e47edd2e5dc8b497dcb57 100755 (executable)
@@ -40,12 +40,12 @@ client=nil
 output=nil
 ARGV.options do |opts|
         opts.on_tail("-h", "--help" , "Display this help screen")                                               { show_help(opts) }
-        opts.on("-d", "--director=AGE"   , String, "name of the director running this job")    { |director| }
-        opts.on("-i", "--jobid=JOBID"     , String, "Job ID")                                  { |jobid| }
-        opts.on("-l", "--joblevel=LEVEL"  , String, "Job Level")                               { |joblevel| }
-        opts.on("-n", "--jobname=NAME"    , String, "Job Name")                                { |jobname| }
-        opts.on("-c", "--client=NAME"     , String, "Client Name")                             { |client| }
-        opts.on("-o", "--output=FILE"     , String, "output File")                             { |output| }
+        opts.on("-d", "--director=AGE"   , String, "name of the director running this job")    { |x| director = x }
+        opts.on("-i", "--jobid=JOBID"     , String, "Job ID")                                  { |x| jobid = x }
+        opts.on("-l", "--joblevel=LEVEL"  , String, "Job Level")                               { |x| joblevel = x }
+        opts.on("-n", "--jobname=NAME"    , String, "Job Name")                                { |x| jobname = x }
+        opts.on("-c", "--client=NAME"     , String, "Client Name")                             { |x| client = x }
+        opts.on("-o", "--output=FILE"     , String, "output File")                             { |x| output = x }
         opts.parse!
 end
 show_help(ARGV.options, 1, STDERR) if ARGV.length != 0