Sha256: 9282b03a8ca10708c3467723290b90f60e30facdea2479cb56810798ac8cabc0
Contents?: true
Size: 668 Bytes
Versions: 3
Compression:
Stored size: 668 Bytes
Contents
context = ChefDK::Generator.context cookbook_dir = File.join(context.cookbook_root, context.cookbook_name) recipe_path = File.join(cookbook_dir, "recipes", "#{context.new_file_basename}.rb") spec_helper_path = File.join(cookbook_dir, "test", "unit", "spec_helper.rb") spec_path = File.join(cookbook_dir, "test", "unit", "recipes", "#{context.new_file_basename}_spec.rb") directory("#{cookbook_dir}/test/unit/recipes") { recursive true } cookbook_file spec_helper_path do source "spec_helper.rb" action :create_if_missing end flay_template(recipe_path) { source "recipe.rb.erb" } flay_template(spec_path) { source "recipe_spec.rb.erb" }
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
chef-flavor-flay-0.3.2 | shared/flavor/flay/recipes/recipe.rb |
chef-flavor-flay-0.3.1 | shared/flavor/flay/recipes/recipe.rb |
chef-flavor-flay-0.3.0 | shared/flavor/flay/recipes/recipe.rb |