Skip to content

Commit 8c5cbca

Browse files
committed
Merge pull request #241 from pearkes/change_authorize_steps_to_give_info_for_array
Changes authorize command to ask for array
2 parents 6563e6a + 2dadacc commit 8c5cbca

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/tugboat/middleware/ask_for_credentials.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def call(env)
1717
region = ask "Enter your default region (optional, defaults to nyc1):"
1818
image = ask "Enter your default image ID or image slug (optional, defaults to ubuntu-14-04-x64):"
1919
size = ask "Enter your default size (optional, defaults to 512mb)):"
20-
ssh_key = ask "Enter your default ssh key IDs (optional, defaults to none, comma separated string):"
20+
ssh_key = ask "Enter your default ssh key IDs (optional, defaults to none, array of IDs of ssh keys eg. ['1234']):"
2121
private_networking = ask "Enter your default for private networking (optional, defaults to false):"
2222
backups_enabled = ask "Enter your default for enabling backups (optional, defaults to false):"
2323
ip6 = ask "Enter your default for IPv6 (optional, defaults to false):"

spec/cli/authorize_cli_spec.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
expect($stdin).to receive(:gets).and_return(image)
3131
expect($stdout).to receive(:print).with("Enter your default size (optional, defaults to 512mb)): ")
3232
expect($stdin).to receive(:gets).and_return(size)
33-
expect($stdout).to receive(:print).with("Enter your default ssh key IDs (optional, defaults to none, comma separated string): ")
33+
expect($stdout).to receive(:print).with("Enter your default ssh key IDs (optional, defaults to none, array of IDs of ssh keys eg. ['1234']): ")
3434
expect($stdin).to receive(:gets).and_return(ssh_key_id)
3535
expect($stdout).to receive(:print).with("Enter your default for private networking (optional, defaults to false): ")
3636
expect($stdin).to receive(:gets).and_return(private_networking)
@@ -79,7 +79,7 @@
7979
expect($stdin).to receive(:gets).and_return('')
8080
expect($stdout).to receive(:print).with("Enter your default size (optional, defaults to 512mb)): ")
8181
expect($stdin).to receive(:gets).and_return('')
82-
expect($stdout).to receive(:print).with("Enter your default ssh key IDs (optional, defaults to none, comma separated string): ")
82+
expect($stdout).to receive(:print).with("Enter your default ssh key IDs (optional, defaults to none, array of IDs of ssh keys eg. ['1234']): ")
8383
expect($stdin).to receive(:gets).and_return('')
8484
expect($stdout).to receive(:print).with("Enter your default for private networking (optional, defaults to false): ")
8585
expect($stdin).to receive(:gets).and_return('')

0 commit comments

Comments
 (0)