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

Version Path
kanamei-keystone-0.0.15 example/batch_sample.rb
kanamei-keystone-0.0.16 example/batch_sample.rb
kanamei-keystone-0.0.17 example/batch_sample.rb
kanamei-keystone-0.0.18 example/batch_sample.rb
kanamei-keystone-0.0.19 example/batch_sample.rb
kanamei-keystone-0.0.20 example/batch_sample.rb
kanamei-keystone-0.0.21 example/batch_sample.rb
kanamei-keystone-0.0.22 example/batch_sample.rb
kanamei-keystone-0.0.23 example/batch_sample.rb
kanamei-keystone-0.0.24 example/batch_sample.rb