I have seen a few posts regarding how to use perforce labels with
Capistrano and now notice the perforce rev_no(revision) method has
been updated to include a new :p4_label variable.  I have never had an
issue using perforce labels in the past without this newly
added :p4_label variable.  (can't find any discussions
regarding :p4_label in this group)

@appname-x.x.x.x is our label convention.  By setting the
[email protected] on the cmd line, Capistrano has always
(well, as long as I've been using it) been able to grab the correct
version of my files.
ex: $ cap <environment> -S [email protected] deploy
(I use the capistrano-ext rubygem to set multiple environments)

Also, by setting :release_name in my deploy.rb file, I am able to pull
the perforce label apart and use it as the release dir name, as in:
set(:release_name)  { set :deploy_timestamped, true;
"#{ Time.now.utc.strftime('%Y_%m_%d_%H%M') }_#{ revision.gsub('.',
'_').gsub('@', '') }" }

It would be nice to be able to just do  "$ cap <environment> @appname-
x.x.x.x deploy" and have Capistrano understand the revision... always
adding the "-S revision=" seems longer than it needs to be.

Cheers,
-=Randy

-- 
* 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