Skip to content

Instantly share code, notes, and snippets.

@bkaney
Created September 23, 2008 16:45
Show Gist options
  • Save bkaney/12330 to your computer and use it in GitHub Desktop.
Save bkaney/12330 to your computer and use it in GitHub Desktop.
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