See the #exists?(:var) method:

  http://wiki.capify.org/article/Exists%3F

Hope that helps,

Jamis

On 2/13/09 7:29 AM, Gerhardus Geldenhuis wrote:
> Hi
> I vaguely recall seeing a way to test for empty or non-existent
> variables but could not find it going through my archives.
> 
> I want to know if there is a way to test whether a variable has been
> declared/have a value?
> 
> Basically I want to write a pre-flight check program that checks that
> users have properly written a config file for a specific environment
> and that the deployment does not come down like a house of cards if
> one variable is missing.
> 
> Regards
> > 


--~--~---------~--~----~------------~-------~--~----~
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at http://groups.google.com/group/capistrano
-~----------~----~----~----~------~----~------~--~---

Reply via email to