From 0b088433ca7a77c52791ae84465b04b937274c38 Mon Sep 17 00:00:00 2001 From: Brandon Mathis Date: Sat, 26 May 2012 11:52:23 -0500 Subject: [PATCH] Added configurable array for adding hidden files to be deployed with copydot task --- Rakefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Rakefile b/Rakefile index 2452172..78ea87e 100644 --- a/Rakefile +++ b/Rakefile @@ -10,6 +10,9 @@ document_root = "~/website.com/" rsync_delete = true deploy_default = "rsync" +# Hidden "dot" files that should be included with the deployed site (see task copydot) +copy_dot_files = [] + # This will be configured for you when you run config_deploy deploy_branch = "gh-pages" @@ -261,7 +264,7 @@ end desc "copy dot files for deployment" task :copydot, :source, :dest do |t, args| - files = [".htaccess", ".nojekyll"] + files = [".htaccess"] | copy_dot_files Dir["#{args.source}/.*"].each do |file| if !File.directory?(file) && files.include?(File.basename(file)) cp(file, file.gsub(/#{args.source}/, "#{args.dest}"));