]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/prometheus/resources/exporter.rb
mail: fix typo on community.openstreetmap.org domain
[chef.git] / cookbooks / prometheus / resources / exporter.rb
index ae0596885b07220efd3d9a1d09ace9c3e34be211..a69d940a0b1d61e006c733567e115c8fb11fab3d 100644 (file)
@@ -99,11 +99,11 @@ action_class do
   end
 
   def service_exists?
-    File.exist?("/etc/systemd/system/#{service_name}.service")
+    ::File.exist?("/etc/systemd/system/#{service_name}.service")
   end
 
   def executable_path
-    "/opt/prometheus/exporters/#{new_resource.exporter}/#{new_resource.exporter}_exporter"
+    "/opt/prometheus-exporters/exporters/#{new_resource.exporter}/#{new_resource.exporter}_exporter"
   end
 
   def executable_options
@@ -129,5 +129,5 @@ action_class do
 end
 
 def after_created
-  subscribes :restart, "git[/opt/prometheus]"
+  subscribes :restart, "git[/opt/prometheus-exporters]"
 end