class ChefDK::Command::GeneratorCommands::CookbookFile

chef generate file [path/to/cookbook_root] name –source=source_file

Public Instance Methods

recipe() click to toggle source
# File lib/chef-dk/command/generator_commands/cookbook_file.rb, line 35
def recipe
  "cookbook_file"
end
setup_context() click to toggle source
# File lib/chef-dk/command/generator_commands/cookbook_file.rb, line 39
def setup_context
  super
  Generator.add_attr_to_context(:content_source, config[:source])
end