It's being set too early before branch has a non empty value;

Try 

set(:version) {"version-#{branch}"}
set(:version_dir) { "releases/#{version}"}

Which will defer evaluation until the first time the variable is fetched. 

On Mar 15, 2011, at 2:44 PM, Chris Patti <[email protected]> wrote:

> set :version, "version-#{branch}"
> set :version_dir, "releases/#{version}"

-- 
* You received this message because you are subscribed to the Google Groups 
"Capistrano" group.
* To post to this group, send email to [email protected]
* To unsubscribe from this group, send email to 
[email protected] For more options, visit this group at 
http://groups.google.com/group/capistrano?hl=en

Reply via email to