Sha256: b92ed067e56a413ffa9e1db238a6fe41effbc58d046fc81510d15a26f8fbe3e0
Contents?: true
Size: 682 Bytes
Versions: 2
Compression:
Stored size: 682 Bytes
Contents
#!/usr/bin/env ruby require 'rubygems' unless defined?(Gem) path = File.expand_path('../../lib', __FILE__) $:.unshift(path) if File.directory?(path) && !$:.include?(path) require 'dante' require 'yaml' require 'oas/log_collector/manager' runner = Dante::Runner.new('oas-log-collector') runner.description = "OAS Log Collector" runner.with_options do |opts| opts.on("-C", "--config PATH", String, "Path to YAML config file") do |arg| options[:config_file] = File.expand_path(arg) end end runner.execute do |options| begin manager = OAS::LogCollector::Manager.new(YAML.load_file(options[:config_file])) manager.start! rescue Interrupt # shutdown end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
oas-log-collector-0.1.6 | bin/oas-log-collector |
oas-log-collector-0.1.5 | bin/oas-log-collector |