lib/simple_deploy/cli.rb in simple_deploy-0.5.2 vs lib/simple_deploy/cli.rb in simple_deploy-0.5.3

- old
+ new

@@ -1,10 +1,11 @@ require 'trollop' require 'simple_deploy/cli/shared' require 'simple_deploy/cli/attributes' +require 'simple_deploy/cli/clone' require 'simple_deploy/cli/create' require 'simple_deploy/cli/deploy' require 'simple_deploy/cli/destroy' require 'simple_deploy/cli/events' require 'simple_deploy/cli/instances' @@ -24,10 +25,12 @@ cmd = ARGV.shift case cmd when 'attributes' CLI::Attributes.new.show + when 'clone' + CLI::Clone.new.clone when 'create' CLI::Create.new.create when 'destroy', 'delete' CLI::Destroy.new.destroy when 'deploy' @@ -55,16 +58,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|protect|resources|ssh|status|update] [options]" + puts "simple_deploy [attributes|clone|create|destroy|environments|events|instances|list|template|outputs|parameters|protect|resources|ssh|status|update] [options]" puts "Append -h for help on specific subcommand." when '-v' puts SimpleDeploy::VERSION else puts "Unknown command: '#{cmd}'." - puts "simple_deploy [attributes|create|destroy|environments|events|instances|list|template|outputs|parameters|protect|resources|ssh|status|update] [options]" + puts "simple_deploy [attributes|clone|create|destroy|environments|events|instances|list|template|outputs|parameters|protect|resources|ssh|status|update] [options]" puts "Append -h for help on specific subcommand." exit 1 end end