Skip to content

Commit

Permalink
Fixes #634
Browse files Browse the repository at this point in the history
  • Loading branch information
Nikola Buhinicek committed Sep 18, 2019
1 parent 31ea923 commit faf71b7
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion tasks/mina/install.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,17 @@
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}"
puts "\n-----> Created #{outfile}"
puts "Edit this file, then run `#{name} setup` after."
end

0 comments on commit faf71b7

Please sign in to comment.