Skip to content

Instantly share code, notes, and snippets.

@henneonrails
Created September 14, 2011 19:24
Show Gist options
  • Save henneonrails/1217518 to your computer and use it in GitHub Desktop.
Save henneonrails/1217518 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