Skip to content

Commit

Permalink
authorize: add a note about the defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
pearkes committed Sep 4, 2013
1 parent 3d993d8 commit eca3fb5
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions lib/tugboat/middleware/ask_for_credentials.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,14 @@ def call(env)
ssh_key_path = ask "Enter your SSH key path (optional, defaults to ~/.ssh/id_rsa):"
ssh_user = ask "Enter your SSH user (optional, defaults to #{ENV['USER']}):"
ssh_port = ask "Enter your SSH port number (optional, defaults to 22):"
region = ask "Enter your default region (optional, defaults to 1 (New York)):"
image = ask "Enter your default image (optional, defaults to 284203 (Ubuntu 12.04 x64)):"
size = ask "Enter your default size (optional, defaults to 66 (512MB)):"
ssh_key = ask "Enter your default ssh key (optional, defaults to none):"
say
say "To retrieve region, image, size and key ID's, you can use the corresponding tugboat command, such as `tugboat images`."
say "Defaults can be changed at any time in your ~/.tugboat configuration file."
say
region = ask "Enter your default region ID (optional, defaults to 1 (New York)):"
image = ask "Enter your default image ID (optional, defaults to 284203 (Ubuntu 12.04 x64)):"
size = ask "Enter your default size ID (optional, defaults to 66 (512MB)):"
ssh_key = ask "Enter your default ssh key ID (optional, defaults to none):"

# Write the config file.
env['config'].create_config_file(client_key, api_key, ssh_key_path, ssh_user, ssh_port, region, image, size, ssh_key)
Expand Down

0 comments on commit eca3fb5

Please sign in to comment.