Skip to content

Commit 7c53289

Browse files
committed
Merge pull request #966 from pantheon-systems/update/0.10.5
Updating to version 0.10.5
2 parents 6ad2b34 + 0454055 commit 7c53289

File tree

7 files changed

+88
-24
lines changed

7 files changed

+88
-24
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
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.10.5] - 2016-02-26
55
### Added
66
- Added `site set-php-version` command to set the PHP version on both sites and their environments. (#937)
77

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.10.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.10.5/terminus.phar -L -o /usr/local/bin/terminus && chmod +x /usr/local/bin/terminus
4141
```
4242

4343
####Installing with Git

composer.lock

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

config/constants.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@ TERMINUS_HOST: 'dashboard.pantheon.io'
99
TERMINUS_PORT: 443
1010
TERMINUS_PROTOCOL: 'https'
1111
TERMINUS_TIME_ZONE: 'UTC'
12-
TERMINUS_VERSION: '0.10.4'
12+
TERMINUS_VERSION: '0.10.5'
1313
TERMINUS_DATE_FORMAT: 'Y-m-d H:i:s'

docs/Helpers/InputHelper.md

Lines changed: 24 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -171,14 +171,31 @@
171171

172172
##### Parameters:
173173
[array] $arg_options Elements as follow:
174-
-array args Argument array passed from commands
175-
-string message Prompt to STDOUT
174+
-array args Argument array passed from commands
175+
-string key Key to look for in args
176+
-string message Prompt to STDOUT
176177

177178
##### Return:
178179
[string] Name of role
179180

180181
---
181182

183+
### phpVersion
184+
##### Description:
185+
Helps select a PHP version for sites and environments
186+
187+
##### Parameters:
188+
[array] $arg_options Elements as follow:
189+
-array args Parameters from the command line
190+
-array choices Choices to override the built-in ones
191+
-string key Key to look for in args
192+
-string message Prompt to STDOUT
193+
194+
##### Return:
195+
[string] PHP version
196+
197+
---
198+
182199
### prompt
183200
##### Description:
184201
Prompt the user for input
@@ -265,10 +282,11 @@
265282

266283
##### Parameters:
267284
[array] $arg_options Elements as follow:
268-
-array args Args already input
269-
-string key Key for searched-for argument
270-
-string message Prompt printed to STDOUT
271-
-mixed default Returns if no other choice
285+
-array args Args already input
286+
-mixed default Returns if no other choice
287+
-string key Key for searched-for argument
288+
-string message Prompt printed to STDOUT
289+
-bool required True to disallow empty strings
272290

273291
##### Return:
274292
[string] Either $args[$key], $default, or string from prompt

docs/Models/Environment.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,19 @@
262262

263263
---
264264

265+
### setPhpVersion
266+
##### Description:
267+
Sets the PHP version number of this environment
268+
269+
##### Parameters:
270+
[string] $version_number The version number to set this environment to
271+
-use
272+
273+
##### Return:
274+
[void]
275+
276+
---
277+
265278
### unlock
266279
##### Description:
267280
Disable HTTP Basic Access authentication on the web environment
@@ -271,6 +284,15 @@
271284

272285
---
273286

287+
### unsetPhpVersion
288+
##### Description:
289+
Unsets the PHP version of this environment so it will use the site default
290+
291+
##### Return:
292+
[void]
293+
294+
---
295+
274296
### wake
275297
##### Description:
276298
"Wake" a site

docs/Models/Site.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,15 @@
170170

171171
---
172172

173+
### fetchAttributes
174+
##### Description:
175+
Re-fetches site attributes from the API
176+
177+
##### Return:
178+
[void]
179+
180+
---
181+
173182
### get
174183
##### Description:
175184
Returns given attribute, if present
@@ -363,6 +372,21 @@
363372

364373
---
365374

375+
### setPhpVersion
376+
##### Description:
377+
Sets the PHP version number of this site
378+
Note: Once this changes, you need to refresh the data in the cache for
379+
this site or the returned PHP version will not reflect the change.
380+
$this->fetchAttributes() will complete this action for you.
381+
382+
##### Parameters:
383+
[string] $version_number The version number to set this site to use
384+
385+
##### Return:
386+
[void]
387+
388+
---
389+
366390
### updateServiceLevel
367391
##### Description:
368392
Update service level

0 commit comments

Comments
 (0)