Skip to content
This repository has been archived by the owner on Sep 5, 2020. It is now read-only.

Commit

Permalink
Add keyphrase support
Browse files Browse the repository at this point in the history
  • Loading branch information
Anahkiasen committed Nov 6, 2013
1 parent 9de7332 commit 6117ec7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Rocketeer/Commands/BaseDeployCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ protected function getServerCredentials()

// Check for server credentials
$connection = array_get($connections, $connectionName, array());
$credentials = array('host' => true, 'username' => true, 'password' => false, 'key' => false);
$credentials = array('host' => true, 'username' => true, 'password' => false, 'keyphrase' => null, 'key' => false);

// Gather credentials
foreach ($credentials as $credential => $required) {
Expand All @@ -141,6 +141,7 @@ protected function getServerCredentials()
$type = $this->ask('No password or SSH key is set for [' .$connectionName. '], which would you use ? [key/password]');
if ($type == 'key') {
$key = $this->ask('Please enter the full path to your key');
$keyphrase = $this->ask('If a keyphrase is required, provide it');
} else {
$password = $this->ask('Please enter your password');
}
Expand Down

0 comments on commit 6117ec7

Please sign in to comment.