Module: Capistrano::Configuration::Variables

Module | Capistrano::Configuration::Variables
In: | lib/capistrano/configuration/variables.rb

### Methods

[] []= exists? fetch reset! set unset

### Attributes

variables | [R] | The hash of variables that have been defined in this configuration instance.

### Public Instance methods

[](variable)
[]=(variable, *args, &block)

Alias for set

exists?(variable)

Returns true if the variable has been defined, and false otherwise.

fetch(variable, *args) {|variable| ...}

Access a named variable. If the value of the variable responds_to? :call, call will be invoked (without parameters) and the return value cached and returned.

reset!(variable)

If the variable was originally a proc value, it will be reset to it‘s original proc value. Otherwise, this method does nothing. It returns true if the variable was actually reset.

set(variable, *args, &block)

Set a variable to the given value.

unset(variable)

Removes any trace of the given variable.

[Validate]