diff --git a/tasks/mina/install.rb b/tasks/mina/install.rb index ac0cbbb6..616af045 100644 --- a/tasks/mina/install.rb +++ b/tasks/mina/install.rb @@ -9,6 +9,13 @@ 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