-
Notifications
You must be signed in to change notification settings - Fork 196
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[AL-1762] - Advance version to 2.0.0 (#1954)
* Updated to version 2.0.0 * Fixed unreachable-logger error when plugins are outdated * Incremented version number to 2.0.0
- Loading branch information
1 parent
48587c1
commit 4469aba
Showing
12 changed files
with
135 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
"license": "MIT", | ||
"extra": { | ||
"terminus": { | ||
"compatible-version": "1.*" | ||
"compatible-version": "2.*" | ||
} | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
tests/fixtures/functional/plugins/outdated/plugin-example/composer.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"name": "pantheon-systems/terminus-plugin-example", | ||
"description": "An example Terminus command", | ||
"type": "terminus-plugin", | ||
"license": "MIT", | ||
"extra": { | ||
"terminus": { | ||
"compatible-version": "0.*" | ||
} | ||
} | ||
} |
28 changes: 28 additions & 0 deletions
28
tests/fixtures/functional/plugins/outdated/plugin-example/src/HasBaseClassCommand.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<?php | ||
/** | ||
* This command can be invoked by running `terminus with-base-class:hello` | ||
*/ | ||
|
||
use Pantheon\Terminus\Commands\TerminusCommand; | ||
|
||
// NOT RECOMMENDED: if you need to include more source files, define | ||
// an 'autoload' section in your composer.json file instead, and use | ||
// autoloading with a namespace. | ||
include __DIR__ . '/PluginProvidedBaseClass.php'; | ||
|
||
/** | ||
* Say hello to the user | ||
*/ | ||
class HasBaseClassCommand extends PluginProvidedBaseClass | ||
{ | ||
/** | ||
* Print the classic message to the log. | ||
* | ||
* @command with-global-base-class:hello | ||
*/ | ||
function sayHello() | ||
{ | ||
$who = $this->whoToGreet(); | ||
$this->log()->notice("Hello, $who!"); | ||
} | ||
} |
22 changes: 22 additions & 0 deletions
22
tests/fixtures/functional/plugins/outdated/plugin-example/src/HelloCommand.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<?php | ||
/** | ||
* This command can be invoked by running `terminus hello` | ||
*/ | ||
|
||
use Pantheon\Terminus\Commands\TerminusCommand; | ||
|
||
/** | ||
* Say hello to the user | ||
*/ | ||
class HelloCommand extends TerminusCommand | ||
{ | ||
/** | ||
* Print the classic message to the log. | ||
* | ||
* @command global:hello | ||
*/ | ||
function sayHello() | ||
{ | ||
$this->log()->notice("Hello, World!"); | ||
} | ||
} |
20 changes: 20 additions & 0 deletions
20
tests/fixtures/functional/plugins/outdated/plugin-example/src/PluginProvidedBaseClass.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<?php | ||
/** | ||
* This file shows an example of a base class for Plugin commands. | ||
*/ | ||
|
||
use Pantheon\Terminus\Commands\TerminusCommand; | ||
|
||
/** | ||
* Example base class | ||
*/ | ||
class PluginProvidedBaseClass extends TerminusCommand | ||
{ | ||
/** | ||
* Provide a utility function | ||
*/ | ||
function whoToGreet() | ||
{ | ||
return 'everyone'; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ | |
}, | ||
"extra": { | ||
"terminus": { | ||
"compatible-version": "1.*" | ||
"compatible-version": "2.*" | ||
} | ||
}, | ||
"require": { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ | |
}, | ||
"extra": { | ||
"terminus": { | ||
"compatible-version": "1.*" | ||
"compatible-version": "2.*" | ||
} | ||
} | ||
} |