Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Extended file template glob pattern.

Should also match common default idioms like database.template.yml.
  • Loading branch information...
commit 23b2e7cbf3f3dc736c0722b397a1e01a75b1db59 1 parent ca02075
@mrreynolds mrreynolds authored
Showing with 5 additions and 5 deletions.
  1. +3 −3 README.textile
  2. +2 −2 lib/inploy/helper.rb
View
6 README.textile
@@ -61,7 +61,7 @@ When using Inploy with Rake, there are five tasks:
* inploy:local:setup
- creates directories db and tmp/pids
-- copies config/*.sample and config/*.example files to config/*
+- copies config/*.[example|sample|template] files to config/*
- creates the database
- executes init.sh file case it exists
- inits and updates the git submodules
@@ -83,7 +83,7 @@ When using Inploy with Rake, there are five tasks:
- pulls the repository
- inits and updates the git submodules
-- copies config/*.sample and config/*.example files to config/*
+- copies config/*.[example|sample|template] files to config/*
- installs gems
- migrates the database
- updates the crontab from Whenever if being used
@@ -142,7 +142,7 @@ You can skip some steps when running a Rake task, just add "skip_steps" into you
Currently the steps available to skip are:
-- copy_sample_files: skip copying config/*.sample and config/*.example files to config/*
+- copy_sample_files: skip copying config/*.[example|sample|template] files to config/*
- install_gems: skip rake gems:install
- migrate_database: skip rake db:migrate
- clear_cache: skip removing cache directories
View
4 lib/inploy/helper.rb
@@ -42,8 +42,8 @@ def application_folder
def copy_sample_files
unless skip_step?('copy_sample_files')
- ["example", "sample"].each do |extension|
- Dir.glob("config/*.#{extension}").each do |file|
+ ["example", "sample", "template"].each do |extension|
+ Dir.glob("config/*.#{extension}*").each do |file|
secure_copy file, file.gsub(".#{extension}", '')
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.