Skip to content

Commit

Permalink
Removed backup:get --element=all, changed element default to files
Browse files Browse the repository at this point in the history
  • Loading branch information
tesladethray committed May 25, 2017
1 parent a339dfb commit f785f01
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
# Change Log
All notable changes to this project will be documented in this file. This project adheres to [Semantic Versioning](http://semver.org)

### MASTER
### Fixed
- Removed the element option's erroneous "all" value from `backup:get`, changed its default to "files". (#170X)

## 1.3.0 - 2017-04-20
### Added
- `env:commit` now has a `--force` option to force a commit even if no changes are found. (#1115)
Expand Down
4 changes: 2 additions & 2 deletions src/Commands/Backup/GetCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class GetCommand extends SingleBackupCommand implements RequestAwareInterface
*
* @param string $site_env Site & environment in the format `site-name.env`
* @option string $file [filename.tgz] Name of backup file
* @option string $element [all|code|files|database|db] Backup element to retrieve
* @option string $element [code|files|database|db] Backup element to retrieve
* @option string $to Local path to save to
* @throws TerminusNotFoundException
*
Expand All @@ -32,7 +32,7 @@ class GetCommand extends SingleBackupCommand implements RequestAwareInterface
* @usage <site>.<env> --to=<path> Saves the most recent backup of any type in <site>'s <env> environment to <path>.
* @usage <site>.<env> --to=<path> Saves the most recent <element> backup in <site>'s <env> environment to <path>.
*/
public function get($site_env, array $options = ['file' => null, 'element' => 'all', 'to' => null,])
public function get($site_env, array $options = ['file' => null, 'element' => 'files', 'to' => null,])
{
$backup_url = $this->getBackup($site_env, $options)->getUrl();
if (!isset($options['to']) || is_null($save_path = $options['to'])) {
Expand Down

0 comments on commit f785f01

Please sign in to comment.