class ChefDK::Command::GeneratorCommands::Template
chef generate template [path/to/cookbook_root] name –source=source_file
Public Instance Methods
recipe()
click to toggle source
# File lib/chef-dk/command/generator_commands/template.rb, line 36 def recipe "template" end
setup_context()
click to toggle source
Calls superclass method
ChefDK::Command::GeneratorCommands::CookbookCodeFile#setup_context
# File lib/chef-dk/command/generator_commands/template.rb, line 40 def setup_context super Generator.add_attr_to_context(:content_source, config[:source]) end