lib/hanzo/modules/deploy.rb in hanzo-0.2.1 vs lib/hanzo/modules/deploy.rb in hanzo-0.2.2

- old
+ new

@@ -17,10 +17,18 @@ deploy run_migrations end def initialize_help - @options.banner = "Usage: hanzo deploy ENVIRONMENT" + @options.banner = <<-BANNER +Usage: hanzo deploy ENVIRONMENT + +Available environments +BANNER + + Hanzo::Installers::Remotes.environments.each do |env| + @options.banner << " - #{env.first}\n" + end end def deploy branch = Hanzo.ask("Branch to deploy in #{@env}:") { |q| q.default = "HEAD" }