Sha256: fcb296ff28246423e8cc1a2153759a9042a5b8018df01a469ffb4331907fd176
Contents?: true
Size: 362 Bytes
Versions: 16
Compression:
Stored size: 362 Bytes
Contents
context = ChefDK::Generator.context cookbook_dir = File.join(context.cookbook_root, context.cookbook_name) resource_dir = File.join(cookbook_dir, 'resources') resource_path = File.join(resource_dir, "#{context.new_file_basename}.rb") directory resource_dir template resource_path do source 'resource.rb.erb' helpers(ChefDK::Generator::TemplateHelper) end
Version data entries
16 entries across 16 versions & 1 rubygems