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