We want ::File here not Chef::Provider::File
authorTom Hughes <tom@compton.nu>
Sat, 23 Nov 2013 17:53:53 +0000 (17:53 +0000)
committerTom Hughes <tom@compton.nu>
Sat, 23 Nov 2013 17:53:53 +0000 (17:53 +0000)
cookbooks/apache/providers/site.rb

index 145d35598cb1c662a1aca0427cd195d36d289401..b54c76a95015062fbd25cf85c0ab42465ea85cf9 100644 (file)
@@ -79,5 +79,5 @@ def enabled_name
 end
 
 def enabled?
-  File.exists?(enabled_name)
+  ::File.exists?(enabled_name)
 end