tasks/mina/install.rb in mina-1.2.4 vs tasks/mina/install.rb in mina-1.2.5
- old
+ new
@@ -1,5 +1,7 @@
+# frozen_string_literal: true
+
desc 'Creates a sample config file.'
task :init do
name = Rake.application.name
config_file = Rake.application.rakefile
@@ -8,10 +10,10 @@
exit 8
end
outfile = './config/deploy.rb'
- if File.exists?(outfile)
+ if File.exist?(outfile)
print 'deploy.rb already exists, do you want to overwrite it? (y/n) '
exit(8) if $stdin.readline.chomp.downcase != 'y'
end