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 !
rake 0.8 support (required with rubygems 1.0


git-svn-id: http://svn.techno-weenie.net/projects/mephisto/trunk@3077 
567b1171-46fb-0310-a4c9-b4bef9110e78
technoweenie (author)
Sat Dec 22 14:45:43 -0800 2007
commit  5d4f97dc7247cea5afd4e68f9f5fb7c1f1dc05b5
tree    1800b4e2f939436d5731d4b7d40d096413666141
parent  e004726ca84654d0ec107ca64014c38564e1f2e6
...
1
2
3
4
 
5
6
7
...
25
26
27
28
 
29
30
31
32
 
33
34
35
...
1
2
3
 
4
5
6
7
...
25
26
27
 
28
29
30
31
 
32
33
34
35
0
@@ -1,7 +1,7 @@
0
 SITE_DIR = File.join(RAILS_ROOT, 'themes/site-' + (ENV['SITE_ID'] || '1'))
0
 namespace :db do
0
   desc "Loads a schema.rb file into the database and then loads the initial database fixtures."
0
- task :bootstrap do
0
+ task :bootstrap do |task_args|
0
     mkdir_p File.join(RAILS_ROOT, 'log')
0
     
0
     require 'rubygems' unless Object.const_defined?(:Gem)
0
@@ -25,11 +25,11 @@ namespace :db do
0
       raise
0
     end
0
     
0
- %w(environment db:schema:load db:bootstrap:load tmp:create).each { |t| Rake::Task[t].execute }
0
+ %w(environment db:schema:load db:bootstrap:load tmp:create).each { |t| Rake::Task[t].execute task_args}
0
     if File.exists?(SITE_DIR)
0
       puts "skipping default theme creation..."
0
     else
0
- Rake::Task["db:bootstrap:copy_default_theme"].execute
0
+ Rake::Task["db:bootstrap:copy_default_theme"].execute task_args
0
       puts "copied default theme to #{SITE_DIR}..."
0
     end
0
     

Comments

    No one has commented yet.