Skip to content

Instantly share code, notes, and snippets.

@imathis
Forked from henneonrails/gist:1217518
Created September 15, 2011 00:37
Show Gist options
  • Save imathis/1218226 to your computer and use it in GitHub Desktop.
Save imathis/1218226 to your computer and use it in GitHub Desktop.
dot files
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