Skip to content
This repository

Definition

exists?(name) 

Module

Capistrano::Configuration::Variables 

This method returns true if the given variable has been set, and false otherwise. It can be useful for determining whether a variable has already been set before setting a default (such as would be the case if the variable were set on the command-line).

set :user, ENV['USER'] unless exists?(:user)
set(:revision) { query_revision } unless exists?(:revision)

Arguments

name

This is the name of a variable to query. It should be a symbol.

Something went wrong with that request. Please try again.