From 5eb5720df3ea05e6376dd92c78687514f598af9d Mon Sep 17 00:00:00 2001 From: Ryan Lue Date: Fri, 25 May 2018 17:55:20 +0800 Subject: [PATCH] Change default option to overwrite config/database.yml in bs:init rake task --- lib/tasks/bootstrap.rake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/tasks/bootstrap.rake b/lib/tasks/bootstrap.rake index 9605bce75..8206fc8ca 100644 --- a/lib/tasks/bootstrap.rake +++ b/lib/tasks/bootstrap.rake @@ -25,8 +25,8 @@ module BootstrapRakeHelper if File.exist?(DB_CONFIG[:dest]) return if FileUtils.identical?(DB_CONFIG[:source], DB_CONFIG[:dest]) - printf 'config/database.yml: File exists. Overwrite? [Y/n] ' - return if STDIN.gets.chomp.downcase == 'n' + printf 'config/database.yml: File exists. Overwrite? [y/N] ' + return if STDIN.gets.chomp.downcase != 'y' end FileUtils.cp(DB_CONFIG[:source], DB_CONFIG[:dest])