Module: ChefDK::Command::GeneratorCommands

Defined in:
lib/chef-dk/command/generator_commands.rb,
lib/chef-dk/command/generator_commands/base.rb,
lib/chef-dk/command/generator_commands/repo.rb,
lib/chef-dk/command/generator_commands/recipe.rb,
lib/chef-dk/command/generator_commands/helpers.rb,
lib/chef-dk/command/generator_commands/cookbook.rb,
lib/chef-dk/command/generator_commands/resource.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/build_cookbook.rb,
lib/chef-dk/command/generator_commands/cookbook_code_file.rb,
lib/chef-dk/command/generator_commands/generator_generator.rb

Overview

## GeneratorCommands

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

Defined Under Namespace

Classes: Attribute, Base, BuildCookbook, Cookbook, CookbookCodeFile, CookbookFile, GeneratorGenerator, Helpers, Policyfile, Recipe, Repo, Resource, Template

Class Method Summary collapse

Class Method Details

.build(class_name, params) ⇒ Object



78
79
80
# File 'lib/chef-dk/command/generator_commands.rb', line 78

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