Created
September 14, 2011 19:24
-
-
Save henneonrails/1217518 to your computer and use it in GitHub Desktop.
dot files
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
desc "copy dot files for deployment" | |
task :copydot do | |
exclusions = [".", "..", ".DS_Store"] | |
Dir["#{source_dir}/**/.*"].each do |file| | |
if (!File.directory?(file) && exclusions.include?(file)) | |
cp(file, file.gsub(/#{source_dir}/, "#{public_dir}")); | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment