Change default option to overwrite config/database.yml in bs:init rake task
This commit is contained in:
parent
659a288d09
commit
5eb5720df3
1 changed files with 2 additions and 2 deletions
|
@ -25,8 +25,8 @@ module BootstrapRakeHelper
|
||||||
|
|
||||||
if File.exist?(DB_CONFIG[:dest])
|
if File.exist?(DB_CONFIG[:dest])
|
||||||
return if FileUtils.identical?(DB_CONFIG[:source], DB_CONFIG[:dest])
|
return if FileUtils.identical?(DB_CONFIG[:source], DB_CONFIG[:dest])
|
||||||
printf 'config/database.yml: File exists. Overwrite? [Y/n] '
|
printf 'config/database.yml: File exists. Overwrite? [y/N] '
|
||||||
return if STDIN.gets.chomp.downcase == 'n'
|
return if STDIN.gets.chomp.downcase != 'y'
|
||||||
end
|
end
|
||||||
|
|
||||||
FileUtils.cp(DB_CONFIG[:source], DB_CONFIG[:dest])
|
FileUtils.cp(DB_CONFIG[:source], DB_CONFIG[:dest])
|
||||||
|
|
Loading…
Reference in a new issue