cookbooks/tvdinner/recipes/default.rb in tvd-tvdinner-0.0.5 vs cookbooks/tvdinner/recipes/default.rb in tvd-tvdinner-0.0.6

- old
+ new

@@ -32,14 +32,20 @@ :ignore => %w(/.bundle/ /vendor/bundle/ /*.gem /crash.log /output)}) end -%w(VERSION NOTICE README.md Gemfile).each do |f| +%w(NOTICE README.md Gemfile).each do |f| template "#{node[:release_dir]}/#{f}" do mode 00644 source "#{f}.erb" end +end + +template "#{node[:release_dir]}/VERSION" do + mode 00644 + source "VERSION.erb" + not_if { File.exists? "#{node[:release_dir]}/VERSION" } end cookbook_file "#{node[:release_dir]}/LICENSE" do mode 00644 source "LICENSE"