Sha256: 931df9bb26e57d082c49277f4fe2884e7d8d97cc2fa44e576fc8a5fd16d07129
Contents?: true
Size: 900 Bytes
Versions: 1
Compression:
Stored size: 900 Bytes
Contents
#!/usr/bin/env ruby require 'rubygems' require 'powcloud/insurance/agent_container' require 'powcloud/insurance/comm/amqp_broadcast_channel' OPTIONS = {:log_level => 'WARN', :config_file => 'config.rb'} parser = OptionParser.new do |opts| opts.banner = <<BANNER Usage ===== $> #{File.basename($0)} working_dir agent1 [agent2 [agent3 [...]]] Options are: BANNER opts.separator "" opts.on("--config=CONFIG_FILE", "config.rb", "Config file to load") { |OPTIONS[:config_file]| } opts.on("--log-level=#{Log4r::LNAMES.join('|')}", "Log level to use") { |OPTIONS[:log_level]| } opts.on("--help", "Show this help message.") { puts opts; exit } opts.parse!(ARGV) end if ARGV.length < 2 puts parser exit end $:.unshift ARGV.shift begin load OPTIONS[:config_file] rescue MissingSourceFile end agent_container = Powcloud::Insurance::AgentContainer.new ARGV, OPTIONS agent_container.run!
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
powcloud-insurance-0.1.0 | bin/insurance |