]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/munin/files/default/plugins/passenger_processes
Fix rubocop warnings
[chef.git] / cookbooks / munin / files / default / plugins / passenger_processes
index b8a06cf3af9c3ce05aaeb9ab9b17721cb30ee017..0611ccc0e7ac4f54a5f2fa3e45b04bdf00a4fa64 100755 (executable)
@@ -3,7 +3,7 @@
 require "English"
 
 def output_config
-  puts <<~END
+  puts <<~CONFIG
     graph_category passenger
     graph_title Passenger processes
     graph_order active inactive
@@ -14,14 +14,14 @@ def output_config
     active.draw AREA
     inactive.label idle servers
     inactive.draw STACK
-  END
+  CONFIG
   exit 0
 end
 
 def output_values
   status = `/usr/sbin/passenger-status`
   unless $CHILD_STATUS.success?
-    $stderr.puts "failed executing passenger-status"
+    warn "failed executing passenger-status"
     exit 1
   end
   status =~ /active\s+=\s+(\d+)/