From: Peter Palfrader Date: Tue, 1 Jan 2013 13:06:22 +0000 (+0100) Subject: Make postbaculajob work with wheezy's ruby X-Git-Url: https://git.adam-barratt.org.uk/?a=commitdiff_plain;h=9e0f33aa915a7125ddccb463ac57a6281d18b4b3;p=mirror%2Fdsa-puppet.git Make postbaculajob work with wheezy's ruby --- diff --git a/modules/bacula/files/postbaculajob b/modules/bacula/files/postbaculajob index 9662d7837..2093fde70 100755 --- a/modules/bacula/files/postbaculajob +++ b/modules/bacula/files/postbaculajob @@ -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