]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/munin/providers/plugin.rb
Fix some issues identified by rubocop
[chef.git] / cookbooks / munin / providers / plugin.rb
index 4361514fb0400400e7d370845ed1132b5e0c5d6b..c058524b91a4a9303a6bdbc4971cf51b23a44d0e 100644 (file)
@@ -73,11 +73,11 @@ end
 
 def target_path
   case
-  when ::File.exists?(target)
+  when ::File.exist?(target)
     target
-  when ::File.exists?("/usr/local/share/munin/plugins/#{target}")
+  when ::File.exist?("/usr/local/share/munin/plugins/#{target}")
     "/usr/local/share/munin/plugins/#{target}"
-  when ::File.exists?("/usr/share/munin/plugins/#{target}")
+  when ::File.exist?("/usr/share/munin/plugins/#{target}")
     "/usr/share/munin/plugins/#{target}"
   else
     nil