lib/ansible_utils/dependency_manager.rb in ansible-utils-0.1.1 vs lib/ansible_utils/dependency_manager.rb in ansible-utils-0.2.0
- old
+ new
@@ -28,10 +28,10 @@
if !File.directory?(populate_ansible_path)
puts "- Ignoring role '#{path}' because it does not exist in #{populate_ansible_path}"
else
dirname = File.dirname(project_path)
- if Dir.exists?(project_path)
+ if Dir.exist?(project_path)
if options.force
puts "+ Overwritting role '#{path}'"
delete_if_exists(project_path)
else
puts "- Skipping existing role '#{path}' (use --force option to overwrite it)"