mirror of
https://github.com/moparisthebest/android.moparisthebest.org
synced 2024-12-24 08:28:50 -05:00
Merge branch '2.1' into site
This commit is contained in:
commit
b673641d4f
5
Rakefile
5
Rakefile
@ -10,6 +10,9 @@ ssh_port = "22"
|
||||
rsync_delete = true
|
||||
deploy_default = "push"
|
||||
|
||||
# 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 = "master"
|
||||
|
||||
@ -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}"));
|
||||
|
Loading…
Reference in New Issue
Block a user