projects
/
chef.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Modernise more LWRPs
[chef.git]
/
cookbooks
/
systemd
/
resources
/
tmpfile.rb
diff --git
a/cookbooks/systemd/resources/tmpfile.rb
b/cookbooks/systemd/resources/tmpfile.rb
index 4138770134741e74bc4953e7ce91daa611ccfe0e..91ede2c149c6fd1371bc0ebdf7bf7a188a48fe10 100644
(file)
--- a/
cookbooks/systemd/resources/tmpfile.rb
+++ b/
cookbooks/systemd/resources/tmpfile.rb
@@
-52,6
+52,8
@@
action :delete do
end
end
-def unit_name
- path.sub(%r{^/}, "").gsub(%r{/}, "-")
+action_class do
+ def unit_name
+ path.sub(%r{^/}, "").gsub(%r{/}, "-")
+ end
end