Method: ChefDK::Command::GeneratorCommands::CookbookCodeFile#run
- Defined in:
- lib/chef-dk/command/generator_commands/cookbook_code_file.rb
#run ⇒ Object
43 44 45 46 47 48 49 50 51 52 53 54 |
# File 'lib/chef-dk/command/generator_commands/cookbook_code_file.rb', line 43 def run read_and_validate_params if params_valid? setup_context chef_runner.converge else errors.each { |error| err("Error: #{error}") } (params) msg(opt_parser) 1 end end |