floe / robo-pantheon
Robo tasks and helpers for Pantheon projects
Installs: 51
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 1
Open Issues: 0
Type:robo-tasks
Requires
- consolidation/robo: ^1.0
Requires (Dev)
- phpspec/phpspec: ^3.2
This package is not auto-updated.
Last update: 2025-03-29 23:15:58 UTC
README
Robo tasks and helpers for Pantheon projects.
Installation
composer require floe/robo-pantheon
Usage
Use the trait in your RoboFile:
class RoboFile extends \Robo\Tasks { use \Floe\Robo\Pantheon\loadTasks; }
Run Terminus command
// terminus command:subcommand:subcommand param1 param2 --option1=value --option2 $this->taskTerminus('art') ->param('param1'); ->param('param2'); ->option('option1', 'value') ->option('option2') ->run(); // terminus command:subcommand:subcommand param1 param2 --option1=value --option2 $this->taskTerminus('command:subcommand:subcommand') ->params('param1', 'param2') ->options([ 'option1' => 'value', 'option2' => true ]) ->run() // terminus command:subcommand:subcommand param1 param2 --option1=value --option2 $this->_terminus('command:subcommand:subcommand', ['param1', 'param2'], ['option1' => 'value', 'option2' => true]);
Run a stack of terminus commands
// terminus command:subcommand:subcommand param1 param2 --option1=value --option2 && // terminus command:subcommand:subcommand param1 param2 --option1=value --option2 $this->taskTerminusStack() ->exec('command:subcommand:subcommand', ['param1', 'param2'], ['option1' => 'value', 'option2' => true]) ->commandSubcommandSubcommand(['param1', 'param2'], ['option1' => 'value', 'option2' => true]) ->run()