1
0
Fork 0
mirror of https://github.com/capistrano/capistrano synced 2023-03-27 23:21:18 -04:00

Add version_dir, current_dir, and shared_dir variables for naming directories used in deployment (closes #9283)

git-svn-id: http://svn.rubyonrails.org/rails/tools/capistrano@7378 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
Jamis Buck 2007-08-30 14:48:57 +00:00
parent e5a0d29f44
commit d257a6c1bf
2 changed files with 10 additions and 3 deletions

View file

@ -1,5 +1,7 @@
*SVN*
* Add version_dir, current_dir, and shared_dir variables for naming the directories used in deployment [drinkingbird]
* Use Windows-safe binary reads for reading file contents [fukas78]
* Add Accurev SCM support [Doug Barth]

View file

@ -39,9 +39,14 @@ _cset(:real_revision) { source.local.query_revision(revision) { |cmd| with_e
_cset(:strategy) { Capistrano::Deploy::Strategy.new(deploy_via, self) }
_cset(:release_name) { set :deploy_timestamped, true; Time.now.utc.strftime("%Y%m%d%H%M%S") }
_cset(:releases_path) { File.join(deploy_to, "releases") }
_cset(:shared_path) { File.join(deploy_to, "shared") }
_cset(:current_path) { File.join(deploy_to, "current") }
_cset(:version_dir) "releases"
_cset(:shared_dir) "shared"
_cset(:current_dir) "current"
_cset(:releases_path) { File.join(deploy_to, version_dir) }
_cset(:shared_path) { File.join(deploy_to, shared_dir) }
_cset(:current_path) { File.join(deploy_to, current_dir) }
_cset(:release_path) { File.join(releases_path, release_name) }
_cset(:releases) { capture("ls -x #{releases_path}").split.sort }