tasks/mina/install.rb in mina-1.2.3 vs tasks/mina/install.rb in mina-1.2.4
- old
+ new
@@ -7,9 +7,16 @@
puts "! You already have #{config_file}."
exit 8
end
outfile = './config/deploy.rb'
+
+ if File.exists?(outfile)
+ print 'deploy.rb already exists, do you want to overwrite it? (y/n) '
+
+ exit(8) if $stdin.readline.chomp.downcase != 'y'
+ end
+
require 'fileutils'
FileUtils.mkdir_p './config'
FileUtils.cp Mina.root_path('data/deploy.rb'), outfile
puts "-----> Created #{outfile}"