trait LoadAllTasks (View source)

Traits

Properties

protected CollectionBuilder $builder from  BuilderAwareTrait

Methods

$this
setBuilder(CollectionBuilder $builder)

No description

getBuiltTask(string $fn, array $args)

Provides the collection builder with access to all of the protected 'task' methods available on this object.

task()

Alternative access to instantiate. Use:

taskForEach(array $collection = [])

Run a callback function on each item in a collection

from  Tasks
taskExec(string|CommandInterface $command)

No description

from  Tasks
taskSymfonyCommand(Command $command)

No description

from  Tasks
taskWatch()

No description

from  Tasks
taskChangelog(string $filename = 'CHANGELOG.md')

No description

from  Tasks
taskGenDoc(string $filename)

No description

from  Tasks
taskGenTask(string $className, string $wrapperClassName = '')

No description

from  Tasks
taskSemVer(string $pathToSemVer = '.semver')

No description

from  Tasks
taskServer(int $port = 8000)

No description

from  Tasks
taskPackPhar(string $filename)

No description

from  Tasks
taskGitHubRelease(string $tag)

No description

from  Tasks
taskOpenBrowser(string|array $url)

No description

from  Tasks
taskCleanDir(string|string[] $dirs)

No description

from  Tasks
taskDeleteDir(string|string[] $dirs)

No description

from  Tasks
taskTmpDir(string $prefix = 'tmp', string $base = '', bool $includeRandomPart = true)

No description

from  Tasks
taskWorkDir(string $finalDestination)

No description

from  Tasks
taskCopyDir(string|string[] $dirs)

No description

from  Tasks
taskMirrorDir(string|string[] $dirs)

No description

from  Tasks
taskFlattenDir(string|string[] $dirs)

No description

from  Tasks
taskConcat(array|Iterator $files)

No description

from  Tasks
taskReplaceInFile(string $file)

No description

from  Tasks
taskWriteToFile(string $file)

No description

from  Tasks
taskTmpFile(string $filename = 'tmp', string $extension = '', string $baseDir = '', bool $includeRandomPart = true)

No description

from  Tasks
taskPack(string $filename)

No description

from  Tasks
taskExtract(string $filename)

No description

from  Tasks
taskSvnStack(string $username = '', string $password = '', string $pathToSvn = 'svn')

No description

from  Tasks
taskGitStack(string $pathToGit = 'git')

No description

from  Tasks
taskHgStack(string $pathToHg = 'hg')

No description

from  Tasks
taskRotateLog(string|string[] $logfile)

No description

from  Tasks
taskTruncateLog(string|string[] $logfile)

No description

from  Tasks
taskComposerInstall(null|string $pathToComposer = null)

No description

from  Tasks
taskComposerUpdate(null|string $pathToComposer = null)

No description

from  Tasks
taskComposerDumpAutoload(null|string $pathToComposer = null)

No description

from  Tasks
taskComposerInit(null|string $pathToComposer = null)

No description

from  Tasks
taskComposerConfig(null|string $pathToComposer = null)

No description

from  Tasks
taskComposerValidate(null|string $pathToComposer = null)

No description

from  Tasks
taskComposerRemove(null|string $pathToComposer = null)

No description

from  Tasks
taskComposerRequire(null|string $pathToComposer = null)

No description

from  Tasks
taskComposerCreateProject(null|string $pathToComposer = null)

No description

from  Tasks
taskCheckPlatformReqs(null|string $pathToComposer = null)

No description

from  Tasks
taskBowerInstall(null|string $pathToBower = null)

No description

from  Tasks
taskBowerUpdate(null|string $pathToBower = null)

No description

from  Tasks
taskNpmInstall(null|string $pathToNpm = null)

No description

from  Tasks
taskNpmUpdate(null|string $pathToNpm = null)

No description

from  Tasks
taskMinify(string $input)

No description

from  Tasks
taskImageMinify(string|string[] $input)

No description

from  Tasks
taskLess(array $input)

No description

from  Tasks
taskScss(array $input)

No description

from  Tasks
taskRsync()

No description

from  Tasks
taskSshExec(null|string $hostname = null, null|string $user = null)

No description

from  Tasks
taskCodecept(null|string $pathToCodeception = null)

No description

from  Tasks
taskPhpUnit(null|string $pathToPhpUnit = null)

No description

from  Tasks
taskPhpspec(null|string $pathToPhpspec = null)

No description

from  Tasks
taskAtoum(null|string $pathToAtoum = null)

No description

from  Tasks
taskBehat(null|string $pathToBehat = null)

No description

from  Tasks
taskApiGen(null|string $pathToApiGen = null)

No description

from  Tasks
taskDockerRun(string $image)

No description

from  Tasks
taskDockerPull(string $image)

No description

from  Tasks
taskDockerBuild(string $path = '.')

No description

from  Tasks
taskDockerStop(string|Result $cidOrResult)

No description

from  Tasks
taskDockerCommit(string|Result $cidOrResult)

No description

from  Tasks
taskDockerStart(string|Result $cidOrResult)

No description

from  Tasks
taskDockerRemove(string|Result $cidOrResult)

No description

from  Tasks
taskDockerExec(string|Result $cidOrResult)

No description

from  Tasks
taskGulpRun(string $task = 'default', null|string $pathToGulp = null)

No description

from  Tasks
_exec(string|CommandInterface $command)

Executes shell command

_copyDir(string $src, string $dst)

No description

_mirrorDir(string $src, string $dst)

No description

_deleteDir(string|string[] $dir)

No description

_cleanDir(string|string[] $dir)

No description

_rename(string $from, string $to, bool $overwrite = false)

No description

_mkdir(string|string[] $dir)

No description

string
_tmpDir(string $prefix = 'tmp', string $base = '', bool $includeRandomPart = true)

No description

_touch(string $file)

No description

_remove(string|string[] $file)

No description

_chgrp(string|string[] $file, string $group)

No description

_chmod(string|string[] $file, int $permissions, int $umask = 00, bool $recursive = false)

No description

_symlink(string $from, string $to)

No description

_copy(string $from, string $to)

No description

_flattenDir(string $from, string $to)

No description

_svnCheckout(string $url)

No description

_gitClone(string $url)

No description

_hgClone(string $url)

No description

_rotateLog(string|string[] $logfile)

No description

_truncateLog(string|string[] $logfile)

No description

Details

$this setBuilder(CollectionBuilder $builder)

No description

Parameters

CollectionBuilder $builder

Return Value

$this

See also

BuilderAwareInterface::setBuilder

protected CollectionBuilder collectionBuilder(ConsoleIO $io = null)

No description

Parameters

ConsoleIO $io

Return Value

CollectionBuilder

null|CollectionBuilder getBuiltTask(string $fn, array $args)

Provides the collection builder with access to all of the protected 'task' methods available on this object.

Parameters

string $fn
array $args

Return Value

null|CollectionBuilder

protected CollectionBuilder task()

Alternative access to instantiate. Use:

$this->task(Foo::class, $a, $b);

instead of:

$this->taskFoo($a, $b);

The later form is preferred.

Return Value

CollectionBuilder

protected TaskForEach|CollectionBuilder taskForEach(array $collection = [])

Run a callback function on each item in a collection

Parameters

array $collection

Return Value

TaskForEach|CollectionBuilder

protected Exec|CollectionBuilder taskExec(string|CommandInterface $command)

No description

Parameters

string|CommandInterface $command

Return Value

Exec|CollectionBuilder

protected ExecStack|CollectionBuilder taskExecStack()

No description

protected ParallelExec|CollectionBuilder taskParallelExec()

No description

protected SymfonyCommand|CollectionBuilder taskSymfonyCommand(Command $command)

No description

Parameters

Command $command

Return Value

SymfonyCommand|CollectionBuilder

protected Watch|CollectionBuilder taskWatch()

No description

Return Value

Watch|CollectionBuilder

protected Changelog|CollectionBuilder taskChangelog(string $filename = 'CHANGELOG.md')

No description

Parameters

string $filename

Return Value

Changelog|CollectionBuilder

protected GenerateMarkdownDoc|CollectionBuilder taskGenDoc(string $filename)

No description

Parameters

string $filename

Return Value

GenerateMarkdownDoc|CollectionBuilder

protected GenerateTask|CollectionBuilder taskGenTask(string $className, string $wrapperClassName = '')

No description

Parameters

string $className
string $wrapperClassName

Return Value

GenerateTask|CollectionBuilder

protected SemVer|CollectionBuilder taskSemVer(string $pathToSemVer = '.semver')

No description

Parameters

string $pathToSemVer

Return Value

SemVer|CollectionBuilder

protected PhpServer|CollectionBuilder taskServer(int $port = 8000)

No description

Parameters

int $port

Return Value

PhpServer|CollectionBuilder

protected PackPhar|CollectionBuilder taskPackPhar(string $filename)

No description

Parameters

string $filename

Return Value

PackPhar|CollectionBuilder

protected GitHubRelease|CollectionBuilder taskGitHubRelease(string $tag)

No description

Parameters

string $tag

Return Value

GitHubRelease|CollectionBuilder

protected OpenBrowser|CollectionBuilder taskOpenBrowser(string|array $url)

No description

Parameters

string|array $url

Return Value

OpenBrowser|CollectionBuilder

protected CleanDir|CollectionBuilder taskCleanDir(string|string[] $dirs)

No description

Parameters

string|string[] $dirs

Return Value

CleanDir|CollectionBuilder

protected DeleteDir|CollectionBuilder taskDeleteDir(string|string[] $dirs)

No description

Parameters

string|string[] $dirs

Return Value

DeleteDir|CollectionBuilder

protected WorkDir|CollectionBuilder taskTmpDir(string $prefix = 'tmp', string $base = '', bool $includeRandomPart = true)

No description

Parameters

string $prefix
string $base
bool $includeRandomPart

Return Value

WorkDir|CollectionBuilder

protected TmpDir|CollectionBuilder taskWorkDir(string $finalDestination)

No description

Parameters

string $finalDestination

Return Value

TmpDir|CollectionBuilder

protected CopyDir|CollectionBuilder taskCopyDir(string|string[] $dirs)

No description

Parameters

string|string[] $dirs

Return Value

CopyDir|CollectionBuilder

protected MirrorDir|CollectionBuilder taskMirrorDir(string|string[] $dirs)

No description

Parameters

string|string[] $dirs

Return Value

MirrorDir|CollectionBuilder

protected FlattenDir|CollectionBuilder taskFlattenDir(string|string[] $dirs)

No description

Parameters

string|string[] $dirs

Return Value

FlattenDir|CollectionBuilder

protected FilesystemStack|CollectionBuilder taskFilesystemStack()

No description

protected Concat|CollectionBuilder taskConcat(array|Iterator $files)

No description

Parameters

array|Iterator $files

Return Value

Concat|CollectionBuilder

protected Replace|CollectionBuilder taskReplaceInFile(string $file)

No description

Parameters

string $file

Return Value

Replace|CollectionBuilder

protected Write|CollectionBuilder taskWriteToFile(string $file)

No description

Parameters

string $file

Return Value

Write|CollectionBuilder

protected TmpFile|CollectionBuilder taskTmpFile(string $filename = 'tmp', string $extension = '', string $baseDir = '', bool $includeRandomPart = true)

No description

Parameters

string $filename
string $extension
string $baseDir
bool $includeRandomPart

Return Value

TmpFile|CollectionBuilder

protected Pack|CollectionBuilder taskPack(string $filename)

No description

Parameters

string $filename

Return Value

Pack|CollectionBuilder

protected Extract|CollectionBuilder taskExtract(string $filename)

No description

Parameters

string $filename

Return Value

Extract|CollectionBuilder

protected SvnStack|CollectionBuilder taskSvnStack(string $username = '', string $password = '', string $pathToSvn = 'svn')

No description

Parameters

string $username
string $password
string $pathToSvn

Return Value

SvnStack|CollectionBuilder

protected GitStack|CollectionBuilder taskGitStack(string $pathToGit = 'git')

No description

Parameters

string $pathToGit

Return Value

GitStack|CollectionBuilder

protected HgStack|CollectionBuilder taskHgStack(string $pathToHg = 'hg')

No description

Parameters

string $pathToHg

Return Value

HgStack|CollectionBuilder

protected CollectionBuilder taskRotateLog(string|string[] $logfile)

No description

Parameters

string|string[] $logfile

Return Value

CollectionBuilder

protected CollectionBuilder taskTruncateLog(string|string[] $logfile)

No description

Parameters

string|string[] $logfile

Return Value

CollectionBuilder

protected Install|CollectionBuilder taskComposerInstall(null|string $pathToComposer = null)

No description

Parameters

null|string $pathToComposer

Return Value

Install|CollectionBuilder

protected Update|CollectionBuilder taskComposerUpdate(null|string $pathToComposer = null)

No description

Parameters

null|string $pathToComposer

Return Value

Update|CollectionBuilder

protected DumpAutoload|CollectionBuilder taskComposerDumpAutoload(null|string $pathToComposer = null)

No description

Parameters

null|string $pathToComposer

Return Value

DumpAutoload|CollectionBuilder

protected Init|CollectionBuilder taskComposerInit(null|string $pathToComposer = null)

No description

Parameters

null|string $pathToComposer

Return Value

Init|CollectionBuilder

protected Config|CollectionBuilder taskComposerConfig(null|string $pathToComposer = null)

No description

Parameters

null|string $pathToComposer

Return Value

Config|CollectionBuilder

protected Validate|CollectionBuilder taskComposerValidate(null|string $pathToComposer = null)

No description

Parameters

null|string $pathToComposer

Return Value

Validate|CollectionBuilder

protected Remove|CollectionBuilder taskComposerRemove(null|string $pathToComposer = null)

No description

Parameters

null|string $pathToComposer

Return Value

Remove|CollectionBuilder

protected RequireDependency|CollectionBuilder taskComposerRequire(null|string $pathToComposer = null)

No description

Parameters

null|string $pathToComposer

Return Value

RequireDependency|CollectionBuilder

protected CreateProject|CollectionBuilder taskComposerCreateProject(null|string $pathToComposer = null)

No description

Parameters

null|string $pathToComposer

Return Value

CreateProject|CollectionBuilder

protected CreateProject|CollectionBuilder taskCheckPlatformReqs(null|string $pathToComposer = null)

No description

Parameters

null|string $pathToComposer

Return Value

CreateProject|CollectionBuilder

protected Install|CollectionBuilder taskBowerInstall(null|string $pathToBower = null)

No description

Parameters

null|string $pathToBower

Return Value

Install|CollectionBuilder

protected Update|CollectionBuilder taskBowerUpdate(null|string $pathToBower = null)

No description

Parameters

null|string $pathToBower

Return Value

Update|CollectionBuilder

protected Install|CollectionBuilder taskNpmInstall(null|string $pathToNpm = null)

No description

Parameters

null|string $pathToNpm

Return Value

Install|CollectionBuilder

protected Update|CollectionBuilder taskNpmUpdate(null|string $pathToNpm = null)

No description

Parameters

null|string $pathToNpm

Return Value

Update|CollectionBuilder

protected Minify|CollectionBuilder taskMinify(string $input)

No description

Parameters

string $input

Return Value

Minify|CollectionBuilder

protected ImageMinify|CollectionBuilder taskImageMinify(string|string[] $input)

No description

Parameters

string|string[] $input

Return Value

ImageMinify|CollectionBuilder

protected Less|CollectionBuilder taskLess(array $input)

No description

Parameters

array $input

Return Value

Less|CollectionBuilder

protected Scss|CollectionBuilder taskScss(array $input)

No description

Parameters

array $input

Return Value

Scss|CollectionBuilder

protected Rsync|CollectionBuilder taskRsync()

No description

Return Value

Rsync|CollectionBuilder

protected Ssh|CollectionBuilder taskSshExec(null|string $hostname = null, null|string $user = null)

No description

Parameters

null|string $hostname
null|string $user

Return Value

Ssh|CollectionBuilder

protected Codecept|CollectionBuilder taskCodecept(null|string $pathToCodeception = null)

No description

Parameters

null|string $pathToCodeception

Return Value

Codecept|CollectionBuilder

protected PHPUnit|CollectionBuilder taskPhpUnit(null|string $pathToPhpUnit = null)

No description

Parameters

null|string $pathToPhpUnit

Return Value

PHPUnit|CollectionBuilder

protected Phpspec|CollectionBuilder taskPhpspec(null|string $pathToPhpspec = null)

No description

Parameters

null|string $pathToPhpspec

Return Value

Phpspec|CollectionBuilder

protected Atoum|CollectionBuilder taskAtoum(null|string $pathToAtoum = null)

No description

Parameters

null|string $pathToAtoum

Return Value

Atoum|CollectionBuilder

protected Behat|CollectionBuilder taskBehat(null|string $pathToBehat = null)

No description

Parameters

null|string $pathToBehat

Return Value

Behat|CollectionBuilder

protected ApiGen|CollectionBuilder taskApiGen(null|string $pathToApiGen = null)

No description

Parameters

null|string $pathToApiGen

Return Value

ApiGen|CollectionBuilder

protected Run|CollectionBuilder taskDockerRun(string $image)

No description

Parameters

string $image

Return Value

Run|CollectionBuilder

protected Pull|CollectionBuilder taskDockerPull(string $image)

No description

Parameters

string $image

Return Value

Pull|CollectionBuilder

protected Build|CollectionBuilder taskDockerBuild(string $path = '.')

No description

Parameters

string $path

Return Value

Build|CollectionBuilder

protected Stop|CollectionBuilder taskDockerStop(string|Result $cidOrResult)

No description

Parameters

string|Result $cidOrResult

Return Value

Stop|CollectionBuilder

protected Commit|CollectionBuilder taskDockerCommit(string|Result $cidOrResult)

No description

Parameters

string|Result $cidOrResult

Return Value

Commit|CollectionBuilder

protected Start|CollectionBuilder taskDockerStart(string|Result $cidOrResult)

No description

Parameters

string|Result $cidOrResult

Return Value

Start|CollectionBuilder

protected Remove|CollectionBuilder taskDockerRemove(string|Result $cidOrResult)

No description

Parameters

string|Result $cidOrResult

Return Value

Remove|CollectionBuilder

protected Exec|CollectionBuilder taskDockerExec(string|Result $cidOrResult)

No description

Parameters

string|Result $cidOrResult

Return Value

Exec|CollectionBuilder

protected Run|CollectionBuilder taskGulpRun(string $task = 'default', null|string $pathToGulp = null)

No description

Parameters

string $task
null|string $pathToGulp

Return Value

Run|CollectionBuilder

protected Result _exec(string|CommandInterface $command)

Executes shell command

Parameters

string|CommandInterface $command

Return Value

Result

protected Result _copyDir(string $src, string $dst)

No description

Parameters

string $src
string $dst

Return Value

Result

protected Result _mirrorDir(string $src, string $dst)

No description

Parameters

string $src
string $dst

Return Value

Result

protected Result _deleteDir(string|string[] $dir)

No description

Parameters

string|string[] $dir

Return Value

Result

protected Result _cleanDir(string|string[] $dir)

No description

Parameters

string|string[] $dir

Return Value

Result

protected Result _rename(string $from, string $to, bool $overwrite = false)

No description

Parameters

string $from
string $to
bool $overwrite

Return Value

Result

protected Result _mkdir(string|string[] $dir)

No description

Parameters

string|string[] $dir

Return Value

Result

protected string _tmpDir(string $prefix = 'tmp', string $base = '', bool $includeRandomPart = true)

No description

Parameters

string $prefix
string $base
bool $includeRandomPart

Return Value

string

protected Result _touch(string $file)

No description

Parameters

string $file

Return Value

Result

protected Result _remove(string|string[] $file)

No description

Parameters

string|string[] $file

Return Value

Result

protected Result _chgrp(string|string[] $file, string $group)

No description

Parameters

string|string[] $file
string $group

Return Value

Result

protected Result _chmod(string|string[] $file, int $permissions, int $umask = 00, bool $recursive = false)

No description

Parameters

string|string[] $file
int $permissions
int $umask
bool $recursive

Return Value

Result

No description

Parameters

string $from
string $to

Return Value

Result

protected Result _copy(string $from, string $to)

No description

Parameters

string $from
string $to

Return Value

Result

protected Result _flattenDir(string $from, string $to)

No description

Parameters

string $from
string $to

Return Value

Result

protected Result _svnCheckout(string $url)

No description

Parameters

string $url

Return Value

Result

protected Result _gitClone(string $url)

No description

Parameters

string $url

Return Value

Result

protected Result _hgClone(string $url)

No description

Parameters

string $url

Return Value

Result

protected Result _rotateLog(string|string[] $logfile)

No description

Parameters

string|string[] $logfile

Return Value

Result

protected Result _truncateLog(string|string[] $logfile)

No description

Parameters

string|string[] $logfile

Return Value

Result