Permalink
Browse files

Make task smarter by not trying to copy files that don't exist.

  • Loading branch information...
1 parent 1082b34 commit dc4cd349497cb39443104b217c206821d6c3cec8 @parndt parndt committed Aug 31, 2010
Showing with 2 additions and 4 deletions.
  1. +2 −2 bin/refinerycms
  2. +0 −2 config/initializers/acts_as_indexed_config.rb
View
4 bin/refinerycms
@@ -129,8 +129,8 @@ module Refinery
FileUtils::cp_r Refinery.root.join(folder), @app_path, :verbose => false
end
%w(.gitignore config/routes.rb config/settings.rb config/environments/production.rb config/initializers/acts_as_indexed_config.rb
- config/initializers/field_with_error_fix.rb config/initializers/fix_rack.rb config/initializers/locale.rb).each do |file|
- FileUtils::cp_r Refinery.root.join(file), @app_path.join(file), :verbose => false
+ config/initializers/field_with_error_fix.rb config/initializers/fix_rack.rb).each do |file|
+ FileUtils::cp_r Refinery.root.join(file), @app_path.join(file), :verbose => false if Refinery.root.join(file).exist?
end
# Remove default application layout and public/index.html
View
2 config/initializers/acts_as_indexed_config.rb
@@ -1,5 +1,3 @@
-# The acts_as_indexed instructions tell us to put this in environment/initializers/
-# but that doesn't work so we're putting it here and requiring it using refinery.
ActsAsIndexed.configure do |config|
config.index_file = Rails.root.join('tmp', 'index')
config.index_file_depth = 3

0 comments on commit dc4cd34

Please sign in to comment.