Skip to content
This repository has been archived by the owner on Jul 14, 2021. It is now read-only.

add create_if_missing to files which will be customized #115

Merged
merged 1 commit into from
Aug 27, 2014
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion lib/chef-dk/skeletons/code_generator/recipes/cookbook.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,23 +8,28 @@
# metadata.rb
template "#{cookbook_dir}/metadata.rb" do
helpers(ChefDK::Generator::TemplateHelper)
action :create_if_missing
end

# README
template "#{cookbook_dir}/README.md" do
helpers(ChefDK::Generator::TemplateHelper)
action :create_if_missing
end

# chefignore
cookbook_file "#{cookbook_dir}/chefignore"

# Berks
cookbook_file "#{cookbook_dir}/Berksfile"
cookbook_file "#{cookbook_dir}/Berksfile" do
action :create_if_missing
end

# TK
template "#{cookbook_dir}/.kitchen.yml" do
source 'kitchen.yml.erb'
helpers(ChefDK::Generator::TemplateHelper)
action :create_if_missing
end

# Recipes
Expand All @@ -34,6 +39,7 @@
template "#{cookbook_dir}/recipes/default.rb" do
source "default_recipe.rb.erb"
helpers(ChefDK::Generator::TemplateHelper)
action :create_if_missing
end

# git
Expand Down