Sha256: 6add1763d05db3b54ad653dea61cbf53090962f6d6be3042e10f22c003e8fc4a
Contents?: true
Size: 695 Bytes
Versions: 1
Compression:
Stored size: 695 Bytes
Contents
require 'rubygems' require 'optparse' module Brightly module Provider class Exec def initialize(argv) options = {} OptionParser.new do |opts| opts.banner { "Usage: brightly [options]" } # Sinatra params opts.on('-x') { options[:lock] = true } opts.on('-s server') { |val| options[:server] = val } opts.on('-e env') { |val| options[:environment] = val.to_sym } opts.on('-p port') { |val| options[:port] = val.to_i } opts.on_tail('-h', '--help', "Show this message") { puts opts ; exit } end Brightly::Provider::Base.run! options end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
brightly-0.1.1 | lib/brightly/provider/exec.rb |