Take the 2008 Git User's Survey and help out! [ hide ]

public
Description: CruiseControl.rb is a continuous integration tool, written in Ruby. It is quick to install, simple to use and easy to hack.
Homepage: http://cruisecontrolrb.thoughtworks.com/
Clone URL: git://github.com/benburkert/cruisecontrolrb.git
Search Repo:
instead of previous checkin, making it actually look at 
ENV['CRUISE_DATA_ROOT']

git-svn-id: http://cruisecontrolrb.rubyforge.org/svn/trunk@606 
c04ce798-636b-4ca8-9149-0f9336831111
alexeyv (author)
Thu Feb 21 17:31:12 -0800 2008
commit  2e1990b5aad62bdff0afc93c6b26746469a8e76b
tree    0e2b55125f6040d6cdfcf48bf9a457d631390785
parent  a41685cc3e1c63cc7f05838d9188d6c71617af27
...
30
31
32
33
34
35
 
 
36
37
38
...
30
31
32
 
 
 
33
34
35
36
37
0
@@ -30,9 +30,8 @@ unless defined?(RAILS_ROOT)
0
 end
0
 
0
 unless defined? CRUISE_DATA_ROOT
0
- old_projects_path = File.join(RAILS_ROOT, 'projects')
0
- if File.directory?(old_projects_path)
0
- CRUISE_DATA_ROOT = old_projects_path
0
+ if ENV['CRUISE_DATA_ROOT']
0
+ CRUISE_DATA_ROOT = ENV['CRUISE_DATA_ROOT']
0
   else
0
     CRUISE_DATA_ROOT = File.join(find_home, ".cruise")
0
   end
...
41
42
43
44
45
 
46
47
48
49
50
51
...
41
42
43
 
 
44
45
 
 
46
47
48
0
@@ -41,11 +41,8 @@ Capistrano::Configuration.instance(:must_exist).load do
0
       sudo "rm -rf #{release_path}/projects"
0
       sudo "mkdir -p #{shared_path}/projects"
0
       sudo "chmod -R 775 #{shared_path}/projects"
0
- sudo "chown deployer #{shared_path}/projects"
0
- sudo "chgrp rails #{shared_path}/projects"
0
+ sudo "chown deployer:rails #{shared_path}/projects"
0
       sudo "ln -nfs #{shared_path}/projects #{release_path}/projects"
0
- sudo "touch #{shared_path}/site_config.rb"
0
- sudo "ln -nfs #{shared_path}/site_config.rb #{release_path}/config/site_config.rb"
0
     end
0
 
0
   end
...
4
5
6
7
 
8
9
10
...
4
5
6
 
7
8
9
10
0
@@ -4,7 +4,7 @@ include FileUtils
0
 DATA_ROOT = ARGV[0]
0
 RAILS_ROOT = File.expand_path(".")
0
 
0
-if File.exists? 'projects'
0
+if File.directory? 'projects'
0
   mv 'projects', DATA_ROOT + '/projects'
0
 else
0
   mkdir_p DATA_ROOT + '/projects'

Comments

    No one has commented yet.