Class: ChefDK::Command::GeneratorCommands::CookbookFile
- Inherits:
-
CookbookCodeFile
- Object
- Base
- Base
- CookbookCodeFile
- ChefDK::Command::GeneratorCommands::CookbookFile
- Defined in:
- lib/chef-dk/command/generator_commands.rb
Overview
chef generate file [path/to/cookbook_root] name –source=source_file
Instance Attribute Summary
Attributes inherited from CookbookCodeFile
#cookbook_path, #errors, #new_file_basename
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from CookbookCodeFile
#cookbook_name, #cookbook_root, #initialize, #params_valid?, #read_and_validate_params, #run, #validate_cookbook_path
Methods inherited from Base
#chef_runner, #generator_context, #generator_cookbook_path, #have_git?, #initialize
Methods inherited from Base
#initialize, #needs_help?, #needs_version?, #run_with_default_options
Methods included from Helpers
#err, #msg, #omnibus_apps_dir, #omnibus_bin_dir, #omnibus_embedded_bin_dir, #omnibus_root, #stderr, #stdout, #system_command
Constructor Details
This class inherits a constructor from ChefDK::Command::GeneratorCommands::CookbookCodeFile
Instance Method Details
#recipe ⇒ Object
403 404 405 |
# File 'lib/chef-dk/command/generator_commands.rb', line 403 def recipe 'cookbook_file' end |
#setup_context ⇒ Object
407 408 409 410 |
# File 'lib/chef-dk/command/generator_commands.rb', line 407 def setup_context super generator_context.content_source = config[:source] end |