]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/munin/files/default/plugins/passenger_queues
Fix rubocop warnings
[chef.git] / cookbooks / munin / files / default / plugins / passenger_queues
index 8d4159b463db107049ca604e37462502fb30c2e9..0850ed2735f1deec94546140fcb30f21395edb6a 100755 (executable)
@@ -3,20 +3,20 @@
 require "English"
 
 def output_config
-  puts <<~END
+  puts <<~CONFIG
     graph_category passenger
     graph_title Passenger queues
     graph_vlabel count
 
     global.label global
-  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 =~ /Requests in top-level queue :\s+(\d+)/