Sha256: c47e74930da12b02011bbfc15ecabae958103db718fc4f4d2af861b1f334ac7d

Contents?: true

Size: 291 Bytes

Versions: 4

Compression:

Stored size: 291 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")

template recipe_path do
  source "recipe.rb.erb"
  helpers(ChefDK::Generator::TemplateHelper)
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
chef-dk-0.3.5 lib/chef-dk/skeletons/code_generator/recipes/recipe.rb
chef-dk-0.3.0 lib/chef-dk/skeletons/code_generator/recipes/recipe.rb
chef-dk-0.2.1 lib/chef-dk/skeletons/code_generator/recipes/recipe.rb
chef-dk-0.2.0 lib/chef-dk/skeletons/code_generator/recipes/recipe.rb