bin/fss in fucking_shell_scripts-0.99 vs bin/fss in fucking_shell_scripts-1.0
- old
+ new
@@ -24,21 +24,25 @@
puts opts
exit
end
opts.on('-v', '--version', 'Show version' ) do
- puts FuckingShellScripts::Version
+ puts FuckingShellScripts::VERSION
+ exit
end
end.parse!
options.merge!(type: ARGV.first)
+abort("Specify the type of server to build/configure as the first argument (ie. fss app-server)") unless options[:type]
+
cli = FuckingShellScripts::CLI.new(options)
if options[:build]
cli.build
elsif options[:configure]
+ abort("Specify the server instance ID to configure using the --instance-id option") unless options[:instance_id]
cli.configure
else
cli.bootstrap
end