1
0
Fork 0
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:
Lee Hambley 2016-02-24 11:10:44 +01:00
commit 9807e4e652

View file

@ -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: