PHP 클래스 Platformsh\Cli\Helper\DrushHelper

상속: extends Symfony\Component\Console\Helper\Helper, implements Platformsh\Cli\Console\OutputAwareInterface
파일 보기 프로젝트 열기: commerceguys/platform-cli 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$config Platformsh\Cli\CliConfig
$fs Symfony\Component\Filesystem\Filesystem
$homeDir
$shellHelper Platformsh\Cli\Helper\ShellHelperInterface

공개 메소드들

메소드 설명
__construct ( CliConfig $config = null, Platformsh\Cli\Helper\ShellHelperInterface $shellHelper = null, Symfony\Component\Filesystem\Filesystem $fs = null )
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 )

보호된 메소드들

메소드 설명
exportAlias ( string $name, array $alias ) : string
generateRemoteAlias ( Platformsh\Client\Model\Environment $environment, LocalApplication $app, boolean $multiApp = false ) : array | false
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.

메소드 상세

__construct() 공개 메소드

public __construct ( CliConfig $config = null, Platformsh\Cli\Helper\ShellHelperInterface $shellHelper = null, Symfony\Component\Filesystem\Filesystem $fs = null )
$config Platformsh\Cli\CliConfig
$shellHelper Platformsh\Cli\Helper\ShellHelperInterface
$fs Symfony\Component\Filesystem\Filesystem

clearCache() 공개 메소드

public clearCache ( ) : boolean
리턴 boolean

createAliases() 공개 메소드

Create Drush aliases for the provided project and environments.
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
리턴 boolean Whether any aliases have been created.

ensureInstalled() 공개 메소드

public ensureInstalled ( )

execute() 공개 메소드

Execute a Drush command.
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.
리턴 string | boolean

exportAlias() 보호된 메소드

protected exportAlias ( string $name, array $alias ) : string
$name string
$alias array
리턴 string

generateRemoteAlias() 보호된 메소드

protected generateRemoteAlias ( Platformsh\Client\Model\Environment $environment, LocalApplication $app, boolean $multiApp = false ) : array | false
$environment Platformsh\Client\Model\Environment
$app Platformsh\Cli\Local\LocalApplication
$multiApp boolean
리턴 array | false

getAliases() 공개 메소드

public getAliases ( string $groupName ) : string | boolean
$groupName string
리턴 string | boolean

getAutoRemoveKey() 보호된 메소드

protected getAutoRemoveKey ( ) : string
리턴 string

getDrushExecutable() 보호된 메소드

Get the full path to the Drush executable.
protected getDrushExecutable ( ) : string
리턴 string The absolute path to the executable, or 'drush' if the path is not known.

getName() 공개 메소드

public getName ( )

getVersion() 공개 메소드

Get the installed Drush version.
public getVersion ( boolean $reset = false ) : string | false
$reset boolean
리턴 string | false The Drush version, or false if it cannot be determined.

setHomeDir() 공개 메소드

Set the user's home directory.
public setHomeDir ( string $homeDir )
$homeDir string

setOutput() 공개 메소드

public setOutput ( Symfony\Component\Console\Output\OutputInterface $output )
$output Symfony\Component\Console\Output\OutputInterface

writeAliasFile() 보호된 메소드

Write a file and create a backup if the contents have changed.
protected writeAliasFile ( string $filename, string $contents )
$filename string
$contents string

프로퍼티 상세

$config 보호되어 있는 프로퍼티

protected CliConfig,Platformsh\Cli $config
리턴 Platformsh\Cli\CliConfig

$fs 보호되어 있는 프로퍼티

protected Filesystem,Symfony\Component\Filesystem $fs
리턴 Symfony\Component\Filesystem\Filesystem

$homeDir 보호되어 있는 프로퍼티

protected $homeDir

$shellHelper 보호되어 있는 프로퍼티

protected ShellHelperInterface,Platformsh\Cli\Helper $shellHelper
리턴 Platformsh\Cli\Helper\ShellHelperInterface