public
Description: Remote multi-server automation tool
Homepage: http://www.capify.org
Clone URL: git://github.com/jamis/capistrano.git
Add :shared_children variable to custoize which subdirectories are created 
by deploy:setup [#34 tagged:committed state:resolved]
jamis (author)
Tue Aug 19 08:05:42 -0700 2008
commit  e70fa828e61c837527ba17d4f3b11ce3f81798dd
tree    c30e150b6b8a775a8502c1cbdd0283ff22fdd0be
parent  7cf110452c7a60867a5a74bd4257d8bb0f5c9665
...
1
2
3
 
 
 
4
5
6
...
1
2
 
3
4
5
6
7
8
0
@@ -1,6 +1,8 @@
0
 == (unreleased)
0
 
0
-* Allow filename globbing in copy_exclude setting for the copy strategy [Sharebear]
0
+* Add :shared_children variable to customize which subdirectories are created by deploy:setup [Jonathan Share]
0
+
0
+* Allow filename globbing in copy_exclude setting for the copy strategy [Jonathan Share]
0
 
0
 * Allow remote_cache strategy to use copy_exclude settings (requires rsync) [Lewis Mackenzie]
0
 
...
42
43
44
 
45
46
47
...
160
161
162
163
 
164
165
166
...
42
43
44
45
46
47
48
...
161
162
163
 
164
165
166
167
0
@@ -42,6 +42,7 @@ _cset(:release_name) { set :deploy_timestamped, true; Time.now.utc.strftime
0
 
0
 _cset :version_dir, "releases"
0
 _cset :shared_dir, "shared"
0
+_cset :shared_children, %w(system log pids)
0
 _cset :current_dir, "current"
0
 
0
 _cset(:releases_path) { File.join(deploy_to, version_dir) }
0
@@ -160,7 +161,7 @@ namespace :deploy do
0
   DESC
0
   task :setup, :except => { :no_release => true } do
0
     dirs = [deploy_to, releases_path, shared_path]
0
- dirs += %w(system log pids).map { |d| File.join(shared_path, d) }
0
+ dirs += shared_children.map { |d| File.join(shared_path, d) }
0
     run "#{try_sudo} mkdir -p #{dirs.join(' ')} && #{try_sudo} chmod g+w #{dirs.join(' ')}"
0
   end
0
 

Comments

    No one has commented yet.