Sha256: 04e954c5fadfe0a6c53d249a2a03d4efd61939bb19289e5b3a4765fd977189d6
Contents?: true
Size: 1.21 KB
Versions: 2
Compression:
Stored size: 1.21 KB
Contents
#!/usr/bin/env ruby require 'lambom' require 'lambom/version' require 'optparse' # -e environment # -j json_file # -s server # -l loglevel # -k private_key_file options = {} OptionParser.new do |opts| opts.banner = "Usage: lambom [options]" opts.on("-j", "--json [JSON FILE]", "Run server configuration with json attributes file") do |j| options[:json_file] = j end opts.on("-e", "--env [ENVIRONMENT]", "Select environment") do |e| options[:environment] = e end opts.on("-s", "--server [SERVER_UUID]", "Set server to which get configuration from riyic api") do |s| options[:server] = s end opts.on("-k", "--keyfile [PRIVATE KEYFILE]", "PEM Private keyfile to sign api requests") do |k| options[:private_key_file] = k end opts.on("-l","--loglevel [LOG_LEVEL]", "Set loglevel") do |l| options[:loglevel] = l end opts.on_tail("-v", "--version", "Show version") do puts Lambom::VERSION exit end end.parse! out = '' begin out = Lambom.run(options) rescue Exception => e puts "Error: #{e.message}" exit 1 end puts "Command executed successfully"
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
lambom-0.2.2 | bin/lambom |
lambom-0.2.1 | bin/lambom |