]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/apache/providers/module.rb
Fix some foodcritic complaints
[chef.git] / cookbooks / apache / providers / module.rb
index 166aa4a4739adfced8ea204d0c4936ffc739d85c..0a85f7ee4ce1c004642a0d7837dae00f7043ce85 100644 (file)
@@ -22,7 +22,7 @@ def whyrun_supported?
 end
 
 action :install do
 end
 
 action :install do
-  if not installed?
+  if !installed?
     package package_name
 
     updated = true
     package package_name
 
     updated = true
@@ -40,14 +40,14 @@ action :install do
       notifies :reload, "service[apache2]" if enabled?
     end
 
       notifies :reload, "service[apache2]" if enabled?
     end
 
-    updated = updated || t.updated_by_last_action?
+    updated ||= t.updated_by_last_action?
   end
 
   new_resource.updated_by_last_action(updated)
 end
 
 action :enable do
   end
 
   new_resource.updated_by_last_action(updated)
 end
 
 action :enable do
-  if not enabled?
+  unless enabled?
     link enabled_name("load") do
       to available_name("load")
       owner "root"
     link enabled_name("load") do
       to available_name("load")
       owner "root"