]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/systemd/resources/tmpfile.rb
Modernise more LWRPs
[chef.git] / cookbooks / systemd / resources / tmpfile.rb
index 4138770134741e74bc4953e7ce91daa611ccfe0e..91ede2c149c6fd1371bc0ebdf7bf7a188a48fe10 100644 (file)
@@ -52,6 +52,8 @@ action :delete do
   end
 end
 
   end
 end
 
-def unit_name
-  path.sub(%r{^/}, "").gsub(%r{/}, "-")
+action_class do
+  def unit_name
+    path.sub(%r{^/}, "").gsub(%r{/}, "-")
+  end
 end
 end