class Pfm::Command::GeneratorCommands::Base
pfm/skeletons/code_generator.
The default implementation is the ‘code_generator` cookbook in
The behavior of the generators is largely delegated to a chef cookbook.
chef converge.
for setting up the generator context, detecting git, and launching a
Base class for `chef generate` subcommands. Contains basic behaviors
## Base
def initialize(params)
def initialize(params) super() @params_valid = true @errors = [] @params = params end
def params_valid?
def params_valid? @params_valid end
def read_and_validate_params
def read_and_validate_params arguments = parse_options(params) case arguments.size when 1 when 2 else @params_valid = false end end
def setup_context
def setup_context end