Skip to content

Commit

Permalink
Fixed auth status check before CommandWithSSH run
Browse files Browse the repository at this point in the history
  • Loading branch information
Sara McCutcheon committed Mar 16, 2016
1 parent 7fcf922 commit 0bacd9f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ All notable changes to this project starting with the 0.6.0 release will be docu
### Fixed
- Fixed unidentified index email warning which appeared when logging in via saved machine token by email. (#983)
- Prevented long loop of configurator loadings. (#988)
- Fixed auth status check before running `CommandWithSSH` descendant commands (`drush`, `wp`). (#986)

## [0.10.6] - 2016-03-07
### Changed
Expand Down
11 changes: 11 additions & 0 deletions php/Terminus/Commands/CommandWithSSH.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,17 @@ abstract class CommandWithSSH extends TerminusCommand {
*/
protected $unavailable_commands = array();

/**
* Object constructor
*
* @param array $options Options to construct the command object
* @return CommandWithSSH
*/
public function __construct(array $options = []) {
$options['require_login'] = true;
parent::__construct($options);
}

/**
* Checks to see if the command is not available in Terminus and, if not,
* it will refer you to an equivalent Terminus command, if such exists.
Expand Down

0 comments on commit 0bacd9f

Please sign in to comment.