@@ -19,20 +19,16 @@ $ dep deploy deployer.org
1919Then Deployer takes the given task, performs some preparation (described later),
2020and executes the task on all specified hosts.
2121
22- ::: info
2322The ` dep ` CLI looks for ` deploy.php ` or ` deploy.yaml ` file in current directory.
2423
2524Or recipe can be specified explicitly via ` -f ` or ` --file ` option.
2625```
2726$ dep --file=deploy.php deploy deployer.org
2827```
29- :::
3028
3129Let's write a recipe.
3230
3331``` php
34- <?php
35-
3632// We are going to use functions declared primarily in Deployer namespace,
3733// to simplify recipe we will use Deployer namespace too. Alternativly,
3834// you can import individual functions via "use function".
@@ -53,19 +49,15 @@ task my_task
5349$
5450```
5551
56- ::: tip
5752If no host provided, Deployer will show an interactive prompt for selecting hosts.
5853If your recipe contains only one host, Deployer will automatically choose it.
5954To select all hosts specify ` all ` .
60- :::
6155
6256But there is our ` whoami ` command? By default, Deployer runs with normal verbosity
6357level and shows only names of executed tasks. Let's increase verbosity to verbose, and
6458rerun our task.
6559
66- :::note The dep CLI options
6760Add ` -v ` option to increase verbosity. Read more about [ CLI usage] ( cli.md ) .
68- :::
6961
7062```
7163$ dep my_task -v
@@ -82,10 +74,8 @@ host('deployer.org');
8274host('medv.io');
8375```
8476
85- :::info Connection options
8677How Deployer knows hot to connect to a host? It uses same ` ~/.ssh/config ` file as
8778the ` ssh ` command. Or you can specify [ connection options] ( hosts.md ) in recipe.
88- :::
8979
9080Let's run ` my_task ` task on both hosts:
9181
@@ -144,10 +134,8 @@ task('my_task', function () {
144134Or via [ parse] ( api.md#parse ) function which replaces brackets ` {{ ... }} ` and value
145135with of config option.
146136
147- ::: tip
148137All functions (writeln, run, runLocally, cd, upload, etc) call ** parse** function
149138internally. So you don't need to call ** parse** function by your self.
150- :::
151139
152140``` diff
153141task('my_task', function () {
@@ -218,8 +206,8 @@ task('my_task', function () {
218206});
219207```
220208
221- If we run my_task we will see what ` date ` is called only once on ` {{current_date}} `
222- access.
209+ If we run my_task we will see what ` date ` is called only once on
210+ ` {{current_date}} ` access.
223211
224212```
225213$ dep my_task deployer.org -v
0 commit comments