bin/kafofy in kafo-6.5.0 vs bin/kafofy in kafo-7.0.0
- old
+ new
@@ -45,11 +45,11 @@
FileUtils.cp src + "/config/#{file}", 'config/'
end
# Create default config file
puts "creating #{options[:config_file]} as a default scenario file"
-if !File.exists?(options[:config_file])
+if !File.exist?(options[:config_file])
puts "... creating config file #{options[:config_file]}"
FileUtils.touch options[:config_file]
File.chmod 0600, options[:config_file]
FileUtils.cp('config/kafo.yaml.example', options[:config_file])
if options[:answer_file]
@@ -59,10 +59,10 @@
end
# Installer script
script_name = "bin/#{options[:name]}"
puts "... creating #{script_name}"
-if !File.exists?(script_name)
+if !File.exist?(script_name)
content = <<EOS
#!/usr/bin/env ruby
require 'rubygems'
require 'kafo'