Skip to content

Commit

Permalink
auto-update
Browse files Browse the repository at this point in the history
  • Loading branch information
DavertMik committed May 9, 2014
1 parent 1d9a1bf commit 782abd9
Showing 1 changed file with 96 additions and 7 deletions.
103 changes: 96 additions & 7 deletions docs/tasks.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,17 @@ $this->taskBowerInstall('path/to/my/bower')
```



* `allowRoot()` adds `allow-root` option to bower
* `forceLatest()` adds `force-latest` option to bower
* `noDev()` adds `production` option to bower
* `offline()` adds `offline` option to bower


* `executeCommand($command)`
* `arg($arg)`
* `args($args)`
* `option($option, $value = null)`



Expand All @@ -49,13 +53,17 @@ $this->taskBowerUpdate('path/to/my/bower')
```



* `allowRoot()` adds `allow-root` option to bower
* `forceLatest()` adds `force-latest` option to bower
* `noDev()` adds `production` option to bower
* `offline()` adds `offline` option to bower


* `executeCommand($command)`
* `arg($arg)`
* `args($args)`
* `option($option, $value = null)`



Expand All @@ -82,9 +90,9 @@ $this->taskCodecept()




* `suite($suite)`
* `test($testName)`
* `option($option, $value = null)`
* `group($group)` set group option. Can be called multiple times
* `excludeGroup($group)`
* `json($file = null)` generate json report
Expand All @@ -106,6 +114,9 @@ $this->taskCodecept()


* `executeCommand($command)`
* `arg($arg)`
* `args($args)`
* `option($option, $value = null)`


## ComposerInstallTask
Expand All @@ -123,13 +134,22 @@ $this->taskComposerInstall('path/to/my/composer.phar')
->preferDist()
->run();
?>

// optimize autoloader with custom path
$this->taskComposerInstall('path/to/my/composer.phar')
->optimizeAutoloader()
->run();
?>
```





* `preferDist()` adds `prefer-dist` option to composer
* `preferSource()` adds `prefer-source` option to composer
* `noDev()` adds `no-dev` option to composer
* `optimizeAutoloader()` adds `optimize-autoloader` option to composer



Expand All @@ -138,6 +158,9 @@ $this->taskComposerInstall('path/to/my/composer.phar')


* `executeCommand($command)`
* `arg($arg)`
* `args($args)`
* `option($option, $value = null)`
## ComposerUpdateTask


Expand All @@ -153,21 +176,84 @@ $this->taskComposerUpdate('path/to/my/composer.phar')
->preferDist()
->run();
?>

// optimize autoloader with custom path
$this->taskComposerUpdate('path/to/my/composer.phar')
->optimizeAutoloader()
->run();
?>
```





* `preferDist()` adds `prefer-dist` option to composer
* `preferSource()` adds `prefer-source` option to composer
* `noDev()` adds `no-dev` option to composer
* `optimizeAutoloader()` adds `optimize-autoloader` option to composer







* `executeCommand($command)`
* `arg($arg)`
* `args($args)`
* `option($option, $value = null)`
## ComposerDumpAutoloadTask


Composer Update

``` php
<?php
// simple execution
$this->taskComposerDumpAutoload()->run();

// dump auto loader with custom path
$this->taskComposerDumpAutoload('path/to/my/composer.phar')
->preferDist()
->run();
?>

// optimize autoloader dump with custom path
$this->taskComposerDumpAutoload('path/to/my/composer.phar')
->optimize()
->run();
?>

// optimize autoloader dump with custom path and no dev
$this->taskComposerDumpAutoload('path/to/my/composer.phar')
->optimize()
->noDev()
->run();
?>
```





* `optimize()`


* `preferDist()` adds `prefer-dist` option to composer
* `preferSource()` adds `prefer-source` option to composer
* `noDev()` adds `no-dev` option to composer
* `optimizeAutoloader()` adds `optimize-autoloader` option to composer






* `executeCommand($command)`
* `arg($arg)`
* `args($args)`
* `option($option, $value = null)`

## ConcatTask

Expand Down Expand Up @@ -246,6 +332,7 @@ $this->taskChangelog()




## GenMarkdownDocTask


Expand Down Expand Up @@ -336,6 +423,7 @@ $this->taskGenDoc('models.md')






## ExecTask
Expand Down Expand Up @@ -399,8 +487,7 @@ $this->taskExecStack()





* `exec($command)`



Expand Down Expand Up @@ -572,16 +659,16 @@ $this->taskGitStack()




* `cloneRepo($repo, $to = null)` Executes `git clone`
* `stopOnFail()` Git commands in stack will stop if any of commands were unsuccessful
* `add($pattern)` Executes `git add` command with files to add pattern
* `commit($message, $options = null)` Executes `git commit` command with a message
* `pull($origin = null, $branch = null)` Executes `git pull` command.
* `push($origin = null, $branch = null)` Executes `git push` command
* `checkout($branch)` Executes `git checkout` command


* `exec($command)`




Expand Down Expand Up @@ -653,6 +740,7 @@ $this->taskPHPUnit()
?>
```


* `filter($filter)`
* `group($group)`
* `excludeGroup($group)`
Expand All @@ -662,8 +750,6 @@ $this->taskPHPUnit()
* `bootstrap($file)`
* `configFile($file)`
* `debug()`
* `option($option, $value = null)`
* `arg($arg)`



Expand All @@ -672,6 +758,9 @@ $this->taskPHPUnit()


* `executeCommand($command)`
* `arg($arg)`
* `args($args)`
* `option($option, $value = null)`

## PackPharTask

Expand Down

0 comments on commit 782abd9

Please sign in to comment.