Module: ChefDK::Command::GeneratorCommands

Defined in:
lib/chef-dk/command/generator_commands.rb,
lib/chef-dk/command/generator_commands/app.rb,
lib/chef-dk/command/generator_commands/base.rb,
lib/chef-dk/command/generator_commands/lwrp.rb,
lib/chef-dk/command/generator_commands/repo.rb,
lib/chef-dk/command/generator_commands/recipe.rb,
lib/chef-dk/command/generator_commands/cookbook.rb,
lib/chef-dk/command/generator_commands/template.rb,
lib/chef-dk/command/generator_commands/attribute.rb,
lib/chef-dk/command/generator_commands/policyfile.rb,
lib/chef-dk/command/generator_commands/cookbook_file.rb,
lib/chef-dk/command/generator_commands/cookbook_code_file.rb

Overview

## GeneratorCommands

This module is the namespace for all subcommands of ‘chef generate`

Defined Under Namespace

Classes: App, Attribute, Base, Cookbook, CookbookCodeFile, CookbookFile, LWRP, Policyfile, Recipe, Repo, Template

Class Method Summary collapse

Class Method Details

.build(class_name, params) ⇒ Object



75
76
77
# File 'lib/chef-dk/command/generator_commands.rb', line 75

def self.build(class_name, params)
  const_get(class_name).new(params)
end