Sha256: 24857c1034a4fde6ecb6d96694eaf87f480dab6656d4349c9391860c69bdf203
Contents?: true
Size: 379 Bytes
Versions: 10
Compression:
Stored size: 379 Bytes
Contents
require 'rubygems' require 'keystone' require "optparse" include Keystone::Batch::Base # 実行時に--helpでオプション一覧 has_option = {} opts = option_parser opts.on("-v value") do |v| has_option[:v] = v end opts.on("-w who") do |v| has_option[:w] = v end execute() do info "batch process01" info "who=#{has_option[:w]}" sleep 4 raise 'error occur' end
Version data entries
10 entries across 10 versions & 1 rubygems