lib/simple_deploy/cli.rb in simple_deploy-0.4.0 vs lib/simple_deploy/cli.rb in simple_deploy-0.4.1
- old
+ new
@@ -20,15 +20,10 @@
module SimpleDeploy
module CLI
def self.start
cmd = ARGV.shift
- unless cmd
- puts "\nPlease specify a command.\n"
- exit 1
- end
-
case cmd
when 'attributes'
CLI::Attributes.new.show
when 'create'
CLI::Create.new.create
@@ -57,15 +52,16 @@
when 'ssh'
CLI::SSH.new.show
when 'update'
CLI::Update.new.update
when '-h'
- puts "simple_deploy [attributes|create|destroy|environments|events|instances|list|template|outputs|parameters|resources|ssh|status|update]"
+ puts "simple_deploy [attributes|create|destroy|environments|events|instances|list|template|outputs|parameters|resources|ssh|status|update] [options]"
puts "Append -h for help on specific subcommand."
else
puts "Unknown command: '#{cmd}'."
- puts "simple_deploy [attributes|create|destroy|environments|events|instances|list|template|outputs|parameters|resources|ssh|status|update]"
+ puts "simple_deploy [attributes|create|destroy|environments|events|instances|list|template|outputs|parameters|resources|ssh|status|update] [options]"
puts "Append -h for help on specific subcommand."
+ exit 1
end
end
end
end