]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/systemd/resources/tmpfile.rb
Qualify property names
[chef.git] / cookbooks / systemd / resources / tmpfile.rb
index 4138770134741e74bc4953e7ce91daa611ccfe0e..070a9cc8db3a7496c3fc30cd87eca74f263489cb 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
+    new_resource.path.sub(%r{^/}, "").gsub(%r{/}, "-")
+  end
 end
 end