Created
September 23, 2008 16:45
-
-
Save bkaney/12330 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace :deploy do | |
task :setup_options do | |
# Set our group | |
set(:group) do | |
Capistrano::CLI.ui.ask("Enter cluster you want to deploy to (default 'default'): ") | |
end | |
set :group, 'default' unless group != '' | |
# Set our AMI | |
set(:ami) do | |
Capistrano::CLI.ui.ask("Enter an AMI you would like to deploy : ") | |
end | |
set :ami, nil unless ami # If this isn't here, it skips over the AMI question | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment