Qualify property names
authorTom Hughes <tom@compton.nu>
Tue, 16 Jan 2018 09:31:26 +0000 (09:31 +0000)
committerTom Hughes <tom@compton.nu>
Tue, 16 Jan 2018 09:31:26 +0000 (09:31 +0000)
cookbooks/imagery/resources/site.rb
cookbooks/systemd/resources/tmpfile.rb

index e4c2c6f86257a5e6805468bc34a7306bd79a92f7..aa5d8ebf20832f641369c24a0bcc7d581a82606d 100644 (file)
@@ -52,7 +52,7 @@ action :create do
     user "root"
     group "root"
     mode 0o644
-    variables :title => title
+    variables :title => new_resource.title
   end
 
   cookbook_file "/srv/#{new_resource.site}/imagery.css" do
index 91ede2c149c6fd1371bc0ebdf7bf7a188a48fe10..070a9cc8db3a7496c3fc30cd87eca74f263489cb 100644 (file)
@@ -54,6 +54,6 @@ end
 
 action_class do
   def unit_name
-    path.sub(%r{^/}, "").gsub(%r{/}, "-")
+    new_resource.path.sub(%r{^/}, "").gsub(%r{/}, "-")
   end
 end