Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add frozen state to site name #1015

Merged
merged 3 commits into from
Apr 6, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 starting with the 0.6.0 release will be documented in this file. This project adheres to [Semantic Versioning](http://semver.org)

## MASTER
### Added
- New field `frozen` appears in `sites list` when a site belonging to your user has been frozen. (#1015)

## [0.11.1] - 2016-03-30
### Added
- New command `site drush-version` to check the Drush version number of any or all environments. (#1001)
Expand Down
1 change: 1 addition & 0 deletions php/Terminus/Caches/SitesCache.php
Original file line number Diff line number Diff line change
Expand Up @@ -334,6 +334,7 @@ private function getSiteData($response_data, $membership_data = array()) {
$site_data = [
'id' => null,
'name' => null,
'frozen' => null,
'label' => null,
'created' => null,
'framework' => null,
Expand Down
3 changes: 3 additions & 0 deletions php/Terminus/Commands/SitesCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,9 @@ public function index($args, $assoc_args) {
'created' => date('Y-m-d H:i:s', $site->get('created')),
'memberships' => $memberships,
];
if ($site->get('frozen')) {
$rows[$site->get('id')]['frozen'] = true;
}
}

usort(
Expand Down