Sha256: 32317ded5ba78b8d8cb2ff970e57e8b6411cf2c47f624d92a8e1300e77753b94
Contents?: true
Size: 511 Bytes
Versions: 2
Compression:
Stored size: 511 Bytes
Contents
#!/usr/bin/env ruby $:.unshift File.join(File.dirname(__FILE__), *%w[.. lib]) require 'rubygems' require 'daemons' require 'optparse' require 'god' options = {} OptionParser.new do |opts| opts.banner = "Usage: god command [options]" opts.on("-cCONFIG", "--config-file CONFIG", "Configuration file") do |x| options[:config] = x end end.parse! options[:config] = File.expand_path(options[:config]) if options[:config] # p options # p ARGV Daemons.run_proc('god') do load options[:config] end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
god-0.2.0 | bin/god |
god-0.1.0 | bin/god |