Свойство | Тип | Описание | |
---|---|---|---|
$config | |||
$fsHelper | |||
$gitHelper | |||
$output | Symfony\Component\Console\Output\OutputInterface | ||
$settings | |||
$shellHelper |
Метод | Описание | |
---|---|---|
__construct ( array $settings = [], |
LocalBuild constructor. | |
build ( string $sourceDir, string $destination = null, array $apps = [] ) : boolean | Build a project from any source directory, targeting any destination. | |
cleanArchives ( string $projectRoot, integer $maxAge = null, integer $keepMax = 10, boolean $quiet = true ) : int[] | Remove old build archives. | |
cleanBuilds ( string $projectRoot, integer $maxAge = null, integer $keepMax = 10, boolean $includeActive = false, boolean $quiet = true ) : int[] | Remove old builds. | |
getTreeId ( string $appRoot ) : string | false | Get a hash of the application files. |
Метод | Описание | |
---|---|---|
buildApp ( |
||
cleanDirectory ( string $directory, integer $maxAge = null, integer $keepMax = 5, array $blacklist = [], boolean $quiet = true ) : int[] | Remove old files from a directory. | |
getActiveBuilds ( string $projectRoot ) : array | ||
runHook ( string | array $hook, string $dir ) : boolean | Run a user-defined hook. | |
runPostBuildHooks ( array $appConfig, string $buildDir ) : boolean | null | Run post-build hooks. | |
runPostDeployHooks ( array $appConfig, string $appDir ) : boolean | null | Run post-deploy hooks. |
public __construct ( array $settings = [], |
||
$settings | array | Possible settings: - clone (bool, default false) Clone the repository to the build directory before building, where possible. - copy (bool, default false) Copy files instead of symlinking them, where possible. - abslinks (bool, default false) Use absolute paths in symlinks. - no-archive (bool, default false) Do not archive or use an archive of the build. - no-cache (bool, default false) Disable the package cache (if relevant and if the package manager supports this). - no-clean (bool, default false) Disable cleaning up old builds or old build archives. - no-build-hooks (bool, default false) Disable running build hooks. - concurrency (int) Specify a concurrency for Drush Make, if applicable (when using the Drupal toolstack). - working-copy (bool, default false) Specify the --working-copy option to Drush Make, if applicable. - lock (bool, default false) Create or update a lock file via Drush Make, if applicable. - run-deploy-hooks (bool, default false) Run deploy hooks. |
$config | Optionally, inject a specific CLI configuration object. | |
$output | Symfony\Component\Console\Output\OutputInterface | Optionally, inject a specific Symfony Console output object. |
protected getActiveBuilds ( string $projectRoot ) : array | ||
$projectRoot | string | |
Результат | array | The absolute paths to any active builds in the project. |
protected CliConfig,Platformsh\Cli $config | ||
Результат |
protected FilesystemHelper,Platformsh\Cli\Helper $fsHelper | ||
Результат |
protected GitHelper,Platformsh\Cli\Helper $gitHelper | ||
Результат |
protected OutputInterface,Symfony\Component\Console\Output $output | ||
Результат | Symfony\Component\Console\Output\OutputInterface |