Skip to content

Commit d80bf98

Browse files
committed
Update basics.md
1 parent 080d089 commit d80bf98

File tree

1 file changed

+2
-14
lines changed

1 file changed

+2
-14
lines changed

docs/basics.md

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -19,20 +19,16 @@ $ dep deploy deployer.org
1919
Then Deployer takes the given task, performs some preparation (described later),
2020
and executes the task on all specified hosts.
2121

22-
:::info
2322
The `dep` CLI looks for `deploy.php` or `deploy.yaml` file in current directory.
2423

2524
Or recipe can be specified explicitly via `-f` or `--file` option.
2625
```
2726
$ dep --file=deploy.php deploy deployer.org
2827
```
29-
:::
3028

3129
Let'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
5752
If no host provided, Deployer will show an interactive prompt for selecting hosts.
5853
If your recipe contains only one host, Deployer will automatically choose it.
5954
To select all hosts specify `all`.
60-
:::
6155

6256
But there is our `whoami` command? By default, Deployer runs with normal verbosity
6357
level and shows only names of executed tasks. Let's increase verbosity to verbose, and
6458
rerun our task.
6559

66-
:::note The dep CLI options
6760
Add `-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');
8274
host('medv.io');
8375
```
8476

85-
:::info Connection options
8677
How Deployer knows hot to connect to a host? It uses same `~/.ssh/config` file as
8778
the `ssh` command. Or you can specify [connection options](hosts.md) in recipe.
88-
:::
8979

9080
Let's run `my_task` task on both hosts:
9181

@@ -144,10 +134,8 @@ task('my_task', function () {
144134
Or via [parse](api.md#parse) function which replaces brackets `{{ ... }}` and value
145135
with of config option.
146136

147-
:::tip
148137
All functions (writeln, run, runLocally, cd, upload, etc) call **parse** function
149138
internally. So you don't need to call **parse** function by your self.
150-
:::
151139

152140
```diff
153141
task('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

Comments
 (0)