public
Fork of halorgium/mephisto
Description: A mirror of the mephisto code-base
Homepage: http://mephistoblog.com/
Clone URL: git://github.com/technoweenie/mephisto.git
Click here to lend your support to: mephisto and make a donation at www.pledgie.com !
allow you to specify which branch of rails you want to deploy

git-svn-id: http://svn.techno-weenie.net/projects/mephisto/trunk@2584 
567b1171-46fb-0310-a4c9-b4bef9110e78
technoweenie (author)
Sat Dec 23 21:00:17 -0800 2006
commit  0e42ad3a09a3c3350158dec6336213d77df28866
tree    96c707da0eb240e1f85789728c81b59a06f3231f
parent  b8bcce0c99d61e5665cd61e6ac9eebe2f5ebf86e
...
2
3
4
 
5
6
7
...
11
12
13
14
 
15
16
17
...
2
3
4
5
6
7
8
...
12
13
14
 
15
16
17
18
0
@@ -2,6 +2,7 @@ desc "freeze rails edge"
0
 task :deploy_edge do
0
   ENV['SHARED_PATH'] = '../../shared' unless ENV['SHARED_PATH']
0
   ENV['RAILS_PATH'] ||= File.join(ENV['SHARED_PATH'], 'rails')
0
+ ENV['REPO_BRANCH'] ||= 'trunk'
0
   
0
   checkout_path = File.join(ENV['RAILS_PATH'], 'trunk')
0
   export_path = "#{ENV['RAILS_PATH']}/rev_#{ENV['REVISION']}"
0
@@ -11,7 +12,7 @@ task :deploy_edge do
0
   unless File.exists?(checkout_path)
0
     puts 'setting up rails trunk'
0
     get_framework_for checkout_path do |framework|
0
- system "svn co http://dev.rubyonrails.org/svn/rails/trunk/#{framework}/lib #{checkout_path}/#{framework}/lib --quiet"
0
+ system "svn co http://dev.rubyonrails.org/svn/rails/#{ENV['REPO_BRANCH']}/#{framework}/lib #{checkout_path}/#{framework}/lib --quiet"
0
     end
0
   end
0
 

Comments

    No one has commented yet.