Skip to content

Commit

Permalink
auto-update
Browse files Browse the repository at this point in the history
  • Loading branch information
DavertMik committed Oct 30, 2015
1 parent 80767a7 commit d18185f
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 3 deletions.
3 changes: 1 addition & 2 deletions docs/tasks/Base.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,7 @@ $this->taskExecStack()
?>
```

* `ExecStack exec(string)`
* `ExecStack stopOnFail(string)`
* `$this stopOnFail()`

* `exec($command)`
* `dir($dir)` changes working directory of command
Expand Down
24 changes: 23 additions & 1 deletion docs/tasks/Development.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,14 +119,36 @@ $this->taskGitHubRelease('0.1.0')
* `uri($uri)`
* `askAuth()`

## OpenBrowser


Opens the default's user browser
code inspired from openBrowser() function in https://github.com/composer/composer/blob/master/src/Composer/Command/HomeCommand.php

``` php
<?php
// open one browser window
$this->taskOpenBrowser('http://localhost')
->run();

// open two browser windows
$this->taskOpenBrowser([
'http://localhost/mysite',
'http://localhost/mysite2'
])
->run();
```



## PackPhar


Creates Phar.

``` php
<?php
$pharTask = $this->PackPhar('package/codecept.phar')
$pharTask = $this->taskPackPhar('package/codecept.phar')
->compress()
->stub('package/stub.php');

Expand Down

0 comments on commit d18185f

Please sign in to comment.