Property | Type | Description | |
---|---|---|---|
$config | |||
$fs | Symfony\Component\Filesystem\Filesystem | ||
$homeDir | |||
$shellHelper | Platformsh\Cli\Helper\ShellHelperInterface |
Method | Description | |
---|---|---|
__construct ( |
||
clearCache ( ) : boolean | ||
createAliases ( Platformsh\Client\Model\Project $project, string $projectRoot, Platformsh\Client\Model\Environment[] $environments, string $original = null, boolean $merge = true ) : boolean | Create Drush aliases for the provided project and environments. | |
ensureInstalled ( ) | ||
execute ( array $args, string $dir = null, boolean $mustRun = false, boolean $quiet = true ) : string | boolean | Execute a Drush command. | |
getAliases ( string $groupName ) : string | boolean | ||
getName ( ) | ||
getVersion ( boolean $reset = false ) : string | false | Get the installed Drush version. | |
setHomeDir ( string $homeDir ) | Set the user's home directory. | |
setOutput ( Symfony\Component\Console\Output\OutputInterface $output ) |
Method | Description | |
---|---|---|
exportAlias ( string $name, array $alias ) : string | ||
generateRemoteAlias ( Platformsh\Client\Model\Environment $environment, |
||
getAutoRemoveKey ( ) : string | ||
getDrushExecutable ( ) : string | Get the full path to the Drush executable. | |
writeAliasFile ( string $filename, string $contents ) | Write a file and create a backup if the contents have changed. |
public __construct ( |
||
$config | ||
$shellHelper | Platformsh\Cli\Helper\ShellHelperInterface | |
$fs | Symfony\Component\Filesystem\Filesystem |
public createAliases ( Platformsh\Client\Model\Project $project, string $projectRoot, Platformsh\Client\Model\Environment[] $environments, string $original = null, boolean $merge = true ) : boolean | ||
$project | Platformsh\Client\Model\Project | The project |
$projectRoot | string | The project root |
$environments | Platformsh\Client\Model\Environment[] | The environments |
$original | string | The original group name |
$merge | boolean | Whether to merge existing alias settings |
return | boolean | Whether any aliases have been created. |
public execute ( array $args, string $dir = null, boolean $mustRun = false, boolean $quiet = true ) : string | boolean | ||
$args | array | Command arguments (everything after 'drush'). |
$dir | string | The working directory. |
$mustRun | boolean | Enable exceptions if the command fails. |
$quiet | boolean | Suppress command output. |
return | string | boolean |
protected generateRemoteAlias ( Platformsh\Client\Model\Environment $environment, |
||
$environment | Platformsh\Client\Model\Environment | |
$app | ||
$multiApp | boolean | |
return | array | false |
protected getDrushExecutable ( ) : string | ||
return | string | The absolute path to the executable, or 'drush' if the path is not known. |
public getVersion ( boolean $reset = false ) : string | false | ||
$reset | boolean | |
return | string | false | The Drush version, or false if it cannot be determined. |
public setHomeDir ( string $homeDir ) | ||
$homeDir | string |
public setOutput ( Symfony\Component\Console\Output\OutputInterface $output ) | ||
$output | Symfony\Component\Console\Output\OutputInterface |
protected writeAliasFile ( string $filename, string $contents ) | ||
$filename | string | |
$contents | string |
protected CliConfig,Platformsh\Cli $config | ||
return |
protected Filesystem,Symfony\Component\Filesystem $fs | ||
return | Symfony\Component\Filesystem\Filesystem |