Skip to content

Commit

Permalink
Merge pull request #1153 from pantheon-systems/update/0.12.0
Browse files Browse the repository at this point in the history
Update Terminus to 0.12.0
  • Loading branch information
TeslaDethray authored Aug 25, 2016
2 parents 02d543d + 8609107 commit 7f480f8
Show file tree
Hide file tree
Showing 24 changed files with 286 additions and 164 deletions.
20 changes: 19 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,27 @@
#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
### [0.12.0] - 2016-08-24
### Added
- Added `choices` property to `InputHelper::siteName` parameter object. (#1152)
- Added `TerminusCollection::listing` to create a list of models therein. (#1152)
- Added `UserSiteMemberships` collection and `UserSiteMembership` model. (#1152)
- Added `UserOrganizationMemberships` collection and `UserOrganizationMembership` model. (#1152)

### Changed
- Renamed `Sites::addSite` to `Sites::create`. (#1152)
- Renamed `OrganizationUserMemberships::addMember` to `OrganizationUserMemberships::create`. (#1152)
- Renamed `OrganizationSiteMemberships::addMember` to `OrganizationSiteMemberships::create`. (#1152)
- When using the sites collection to gather all sites, you now must use `Sites::fetch()` to retrieve the relevant objects. (#1152)
- Renamed `OrganizationSiteMembership::removeMember` to `OrganizationSiteMembership::delete`. (#1152)
- Renamed `OrganizationUserMembership::removeMember` to `OrganizationUserMembership::delete`. (#1152)
- Remamed `Sites::filterAllByTag` to `Sites::filterByTag`. (#1152)
- Renamed `UserOrganizationMemberships::get` to `UserOrganizationMemberships::getOrganization`. (#1152)
- `Sites::get` no longer fetches all sites to find the named site. (#1152)

### Removed
- `cli cache-clear` command. (#1152)
- The `SitesCache` class and all site cache-relevant functions have been removed. (#1152)
- The command `site set-php-version` has been removed. Please set your PHP version by your pantheon.yml file. (See: https://pantheon.io/docs/php-versions) (#1121)

## [0.11.4] - 2016-08-10
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ composer require pantheon-systems/terminus

Run this in this in your terminal client:
```bash
curl https://github.com/pantheon-systems/terminus/releases/download/0.11.4/terminus.phar -L -o /usr/local/bin/terminus && chmod +x /usr/local/bin/terminus
curl https://github.com/pantheon-systems/terminus/releases/download/0.12.0/terminus.phar -L -o /usr/local/bin/terminus && chmod +x /usr/local/bin/terminus
```

####Installing with [Homebrew](http://brew.sh/)(for Macs)
Expand Down
43 changes: 23 additions & 20 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions config/constants.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
---

# App
TERMINUS_VERSION: '0.11.4'
TERMINUS_VERSION: '0.12.0'

# Connectivity
TERMINUS_HOST: 'dashboard.pantheon.io'
Expand All @@ -25,7 +25,7 @@ TERMINUS_CONFIG_DIR: '~/terminus'
TERMINUS_LOG_DIR: '/tmp'
TERMINUS_PLUGINS_DIR: '[[ TERMINUS_CONFIG_DIR ]]/plugins'
TERMINUS_TOKENS_DIR: '[[ TERMINUS_CACHE_DIR ]]/tokens'
TERMINUS_ASSETS_DIR: '[[ TERMINUS_ROOT ]]/app/assets'
TERMINUS_ASSETS_DIR: '[[ TERMINUS_ROOT ]]/php/assets'

# Helpers
TERMINUS_USER: null
Expand Down
7 changes: 4 additions & 3 deletions docs/Helpers/InputHelper.md
Original file line number Diff line number Diff line change
Expand Up @@ -288,9 +288,10 @@

##### Parameters:
[array] $arg_options Elements as follow:
-array args The args passed in from argv
-string key Args key to search for
-string message Prompt for STDOUT
-array args The args passed in from argv
-Site[] choices An array of sites to use as options
-string key Args key to search for
-string message Prompt for STDOUT

##### Return:
[string] Site name
Expand Down
52 changes: 46 additions & 6 deletions docs/Models/Collections/OrganizationSiteMemberships.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,31 @@
# Terminus\Models\Collections\OrganizationSiteMemberships

### addMember
### __construct
##### Description:
Instantiates the collection

##### Parameters:
[array] $options To be set

##### Return:
[OrganizationSiteMemberships]

---

### add
##### Description:
Adds a model to this collection

##### Parameters:
[object] $model_data Data to feed into attributes of new model
[array] $arg_options Data to make properties of the new model

##### Return:
[void]

---

### create
##### Description:
Adds a site to this organization

Expand All @@ -20,19 +45,34 @@
[string] $id UUID or name of desired site membership instance

##### Return:
[Site]
[OrganizationSiteMembership]

---

### fetch
### getSite
##### Description:
Fetches model data from API and instantiates its model instances
Retrieves the matching site from model members

##### Parameters:
[array] $options params to pass to url request
[string] $site_id ID or name of desired site

##### Return:
[OrganizationSiteMemberships]
[Site] $site

##### Throws:
TerminusException

---

### siteIsMember
##### Description:
Determines whether a site is a member of this collection

##### Parameters:
[Site] $site Site to determine membership of

##### Return:
[bool]

---

36 changes: 23 additions & 13 deletions docs/Models/Collections/OrganizationUserMemberships.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,28 @@
# Terminus\Models\Collections\OrganizationUserMemberships

### addMember
### __construct
##### Description:
Instantiates the collection, sets param members as properties

##### Parameters:
[array] $options To be set to $this->key

---

### add
##### Description:
Adds a model to this collection

##### Parameters:
[object] $model_data Data to feed into attributes of new model
[array] $arg_options Data to make properties of the new model

##### Return:
[void]

---

### create
##### Description:
Adds a user to this organization

Expand Down Expand Up @@ -28,15 +50,3 @@

---

### fetch
##### Description:
Fetches model data from API and instantiates its model instances

##### Parameters:
[array] $options params to pass to url request

##### Return:
[OrganizationUserMemberships]

---

Loading

0 comments on commit 7f480f8

Please sign in to comment.