Permalink
Browse files

Adding app_helpers:reinstall

  • Loading branch information...
1 parent 2888a52 commit 4b09f5cd5f61c7007deaa7b88e49c48d025b212c @winton committed Jan 30, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 tasks/app_helpers.rake
@@ -20,9 +20,9 @@ namespace :app_helpers do
def app_helper_resource(type, to, reverse=false, overwrite=true)
from = "#{File.dirname(__FILE__)}/../resources/#{type}"
from, to = to, from if reverse
+ return if File.exists?(to) && !overwrite
puts "=> Removing old #{type}..."
puts to
- return if File.exists?(to) && !overwrite
if File.directory?(from)
FileUtils.remove_dir(to, true) if File.exists?(to)
FileUtils.mkdir_p to

0 comments on commit 4b09f5c

Please sign in to comment.