bin/caramelize in caramelize-1.1.0 vs bin/caramelize in caramelize-1.1.1
- old
+ new
@@ -43,11 +43,11 @@
instance_eval(File.read(options.config))
target = options.target
- if File.exists?(target)
+ if File.exist?(target)
answer = agree("#{target} already exists. Overwrite with fresh repository?")
FileUtils.rm_rf(target) if answer
end
wiki_options = input_wiki.options.merge(verbose: options.verbose,
@@ -64,10 +64,10 @@
c.option '--target STRING', String, 'The target path to Gollum git repository (default: wiki-export)'
c.example 'Run transfer for "caramel.rb"', 'caramelize doctor'
c.action do |args, options|
options.default(target: 'wiki-export')
- if File.exists?(options.target)
+ if File.exist?(options.target)
Caramelize::HealthCheck.new(options.target).execute
else
say("No wiki repositry found in directory #{options.target}")
end
end