Skip to content

Commit

Permalink
Fix radiant:update:configs again.
Browse files Browse the repository at this point in the history
  • Loading branch information
seancribbs committed Aug 1, 2008
1 parent 9296b4c commit 2b9e0f7
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/tasks/framework.rake
Expand Up @@ -104,9 +104,8 @@ unless File.directory? "#{RAILS_ROOT}/app"
gen_env = "#{File.dirname(__FILE__)}/../generators/instance/templates/instance_environment.rb"
backup_env = "#{RAILS_ROOT}/config/environment.bak"
File.open(tmp_env, 'w') do |f|
f.write ERB.new(File.read(gen_env)).result(lambda do
app_name = File.basename(File.expand_path(RAILS_ROOT))
end)
app_name = File.basename(File.expand_path(RAILS_ROOT))
f.write ERB.new(File.read(gen_env)).result(binding)
end
unless FileUtils.compare_file(instance_env, tmp_env)
FileUtils.cp(instance_env, backup_env)
Expand Down

0 comments on commit 2b9e0f7

Please sign in to comment.