mirror of
https://github.com/capistrano/capistrano
synced 2023-03-27 23:21:18 -04:00
Merge pull request #175 from mattbrictson/append
Document the new append method
This commit is contained in:
commit
9807e4e652
1 changed files with 6 additions and 1 deletions
|
@ -23,7 +23,6 @@ set :application, 'MyLittleApplication'
|
|||
set :application, -> { "SomeThing_#{fetch :other_config}" }
|
||||
```
|
||||
|
||||
|
||||
A value can be retrieved from the configuration at any time:
|
||||
|
||||
```ruby
|
||||
|
@ -34,6 +33,12 @@ fetch(:special_thing, 'some_default_value')
|
|||
# will return the value if set, or the second argument as default value
|
||||
```
|
||||
|
||||
**New in Capistrano 3.5:** for a variable that holds an Array, easily add values to it using `append`. This comes in especially handy for `:linked_dirs` and `:linked_files` (see Variables reference below).
|
||||
|
||||
```ruby
|
||||
append :linked_dirs, ".bundle", "tmp"
|
||||
```
|
||||
|
||||
## Variables
|
||||
|
||||
The following variables are settable:
|
||||
|
|
Loading…
Add table
Reference in a new issue