]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/apache/providers/conf.rb
More rubocop cleanup
[chef.git] / cookbooks / apache / providers / conf.rb
index d249079d961144cc0e9cc067f4caa1b065afc5a8..da339b955098f9d74b87e2e3c97c0e0322d10f17 100644 (file)
@@ -57,7 +57,7 @@ def create_conf
     group "root"
     mode 0644
     variables new_resource.variables
-    notifies :reload, "service[apache2]" if enabled? or available_name == enabled_name
+    notifies :reload, "service[apache2]" if enabled? || available_name == enabled_name
   end
 
   new_resource.updated_by_last_action(t.updated_by_last_action?)
@@ -108,5 +108,5 @@ def enabled_name
 end
 
 def enabled?
-  ::File.exists?(enabled_name)
+  ::File.exist?(enabled_name)
 end