Sha256: c104dc008aef38904a61fbebcd4cfaf78645f82650a5ef0594b61484eaeb205b
Contents?: true
Size: 667 Bytes
Versions: 2
Compression:
Stored size: 667 Bytes
Contents
module GameMachine module Console class Deploy attr_reader :options, :service def initialize(service,argv) @options = parse_arguments(argv) @service = service end def parse_arguments(arguments) options = {} OptionParser.new do |opt| opt.banner = "Usage: game_machine deploy [options]" opt.on('-n', '--name=name', String, 'Give a name to the bundle') { |v| options[:server] = v.strip } opt.parse!(arguments) end unless options.has_key?(:name) options[:name] = 'default' end options end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
game_machine-1.0.4 | lib/game_machine/console/deploy.rb |
game_machine-1.0.2 | lib/game_machine/console/deploy.rb |