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, *args, &block)

Alias for set

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

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.

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 a variable to the given value.

Removes any trace of the given variable.

[Validate]