views:

163

answers:

1

I'm using rake to copy a directory as so:

file copied_directory => original_directory do
#copy directory
end

This works fine, except when something inside of original_directory changes. The problem is that the mod date doesn't change on the enclosing directory, so rake doesn't know to copy the directory again. Is there any way to handle this? Unfortunately my current setup does not allow me to set up individual dependencies for each individual file inside of original_directory.

+2  A: 

You could use rsync to keep the 2 directories in sync as shown here: http://asciicasts.com/episodes/149-rails-engines

atog