6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
# File 'lib/fum/commands/launch.rb', line 6
def parse_options
options = Trollop::options do
banner "usage launch [options] <environment-id>, where options are:"
opt :version_label, "Launch the specified version", :long => "version", :type => :string
opt :create, "Create application if it does not exist"
opt :no_dns, "Do not change any DNS records", :default => false
opt :no_wait, "Launch environment, but do not wait for ready", :default => false, :short => 'w'
end
if ARGV.empty?
die "Stage not specified. Please specify a stage to launch"
end
options[:stage_name] = ARGV.shift
options
end
|