Skip to content

Commit 7f480f8

Browse files
authored
Merge pull request #1153 from pantheon-systems/update/0.12.0
Update Terminus to 0.12.0
2 parents 02d543d + 8609107 commit 7f480f8

24 files changed

+286
-164
lines changed

CHANGELOG.md

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,27 @@
11
#Change Log
22
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)
33

4-
## MASTER
4+
### [0.12.0] - 2016-08-24
5+
### Added
6+
- Added `choices` property to `InputHelper::siteName` parameter object. (#1152)
7+
- Added `TerminusCollection::listing` to create a list of models therein. (#1152)
8+
- Added `UserSiteMemberships` collection and `UserSiteMembership` model. (#1152)
9+
- Added `UserOrganizationMemberships` collection and `UserOrganizationMembership` model. (#1152)
10+
11+
### Changed
12+
- Renamed `Sites::addSite` to `Sites::create`. (#1152)
13+
- Renamed `OrganizationUserMemberships::addMember` to `OrganizationUserMemberships::create`. (#1152)
14+
- Renamed `OrganizationSiteMemberships::addMember` to `OrganizationSiteMemberships::create`. (#1152)
15+
- When using the sites collection to gather all sites, you now must use `Sites::fetch()` to retrieve the relevant objects. (#1152)
16+
- Renamed `OrganizationSiteMembership::removeMember` to `OrganizationSiteMembership::delete`. (#1152)
17+
- Renamed `OrganizationUserMembership::removeMember` to `OrganizationUserMembership::delete`. (#1152)
18+
- Remamed `Sites::filterAllByTag` to `Sites::filterByTag`. (#1152)
19+
- Renamed `UserOrganizationMemberships::get` to `UserOrganizationMemberships::getOrganization`. (#1152)
20+
- `Sites::get` no longer fetches all sites to find the named site. (#1152)
21+
522
### Removed
623
- `cli cache-clear` command. (#1152)
24+
- The `SitesCache` class and all site cache-relevant functions have been removed. (#1152)
725
- 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)
826

927
## [0.11.4] - 2016-08-10

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ composer require pantheon-systems/terminus
3737

3838
Run this in this in your terminal client:
3939
```bash
40-
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
40+
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
4141
```
4242

4343
####Installing with [Homebrew](http://brew.sh/)(for Macs)

composer.lock

Lines changed: 23 additions & 20 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

config/constants.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
---
88

99
# App
10-
TERMINUS_VERSION: '0.11.4'
10+
TERMINUS_VERSION: '0.12.0'
1111

1212
# Connectivity
1313
TERMINUS_HOST: 'dashboard.pantheon.io'
@@ -25,7 +25,7 @@ TERMINUS_CONFIG_DIR: '~/terminus'
2525
TERMINUS_LOG_DIR: '/tmp'
2626
TERMINUS_PLUGINS_DIR: '[[ TERMINUS_CONFIG_DIR ]]/plugins'
2727
TERMINUS_TOKENS_DIR: '[[ TERMINUS_CACHE_DIR ]]/tokens'
28-
TERMINUS_ASSETS_DIR: '[[ TERMINUS_ROOT ]]/app/assets'
28+
TERMINUS_ASSETS_DIR: '[[ TERMINUS_ROOT ]]/php/assets'
2929

3030
# Helpers
3131
TERMINUS_USER: null

docs/Helpers/InputHelper.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -288,9 +288,10 @@
288288

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

295296
##### Return:
296297
[string] Site name

docs/Models/Collections/OrganizationSiteMemberships.md

Lines changed: 46 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,31 @@
11
# Terminus\Models\Collections\OrganizationSiteMemberships
22

3-
### addMember
3+
### __construct
4+
##### Description:
5+
Instantiates the collection
6+
7+
##### Parameters:
8+
[array] $options To be set
9+
10+
##### Return:
11+
[OrganizationSiteMemberships]
12+
13+
---
14+
15+
### add
16+
##### Description:
17+
Adds a model to this collection
18+
19+
##### Parameters:
20+
[object] $model_data Data to feed into attributes of new model
21+
[array] $arg_options Data to make properties of the new model
22+
23+
##### Return:
24+
[void]
25+
26+
---
27+
28+
### create
429
##### Description:
530
Adds a site to this organization
631

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

2247
##### Return:
23-
[Site]
48+
[OrganizationSiteMembership]
2449

2550
---
2651

27-
### fetch
52+
### getSite
2853
##### Description:
29-
Fetches model data from API and instantiates its model instances
54+
Retrieves the matching site from model members
3055

3156
##### Parameters:
32-
[array] $options params to pass to url request
57+
[string] $site_id ID or name of desired site
3358

3459
##### Return:
35-
[OrganizationSiteMemberships]
60+
[Site] $site
61+
62+
##### Throws:
63+
TerminusException
64+
65+
---
66+
67+
### siteIsMember
68+
##### Description:
69+
Determines whether a site is a member of this collection
70+
71+
##### Parameters:
72+
[Site] $site Site to determine membership of
73+
74+
##### Return:
75+
[bool]
3676

3777
---
3878

docs/Models/Collections/OrganizationUserMemberships.md

Lines changed: 23 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,28 @@
11
# Terminus\Models\Collections\OrganizationUserMemberships
22

3-
### addMember
3+
### __construct
4+
##### Description:
5+
Instantiates the collection, sets param members as properties
6+
7+
##### Parameters:
8+
[array] $options To be set to $this->key
9+
10+
---
11+
12+
### add
13+
##### Description:
14+
Adds a model to this collection
15+
16+
##### Parameters:
17+
[object] $model_data Data to feed into attributes of new model
18+
[array] $arg_options Data to make properties of the new model
19+
20+
##### Return:
21+
[void]
22+
23+
---
24+
25+
### create
426
##### Description:
527
Adds a user to this organization
628

@@ -28,15 +50,3 @@
2850

2951
---
3052

31-
### fetch
32-
##### Description:
33-
Fetches model data from API and instantiates its model instances
34-
35-
##### Parameters:
36-
[array] $options params to pass to url request
37-
38-
##### Return:
39-
[OrganizationUserMemberships]
40-
41-
---
42-

0 commit comments

Comments
 (0)