class ChefCLI::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-cli/command/generator_commands/template.rb, line 36
def recipe
  "template"
end
setup_context() click to toggle source
# File lib/chef-cli/command/generator_commands/template.rb, line 40
def setup_context
  super
  Generator.add_attr_to_context(:content_source, config[:source])
end