lib/chef-cli/command/generate.rb in chef-cli-5.5.0 vs lib/chef-cli/command/generate.rb in chef-cli-5.5.4
- old
+ new
@@ -53,11 +53,10 @@
generator(:helpers, :Helpers, "Generate a cookbook helper file in libraries")
generator(:resource, :Resource, "Generate a custom resource")
generator(:repo, :Repo, "Generate a #{ChefCLI::Dist::INFRA_PRODUCT} code repository")
generator(:policyfile, :Policyfile, "Generate a Policyfile for use with the install/push commands")
generator(:generator, :GeneratorGenerator, "Copy #{ChefCLI::Dist::PRODUCT}'s generator cookbook so you can customize it")
- generator(:'build-cookbook', :BuildCookbook, "DEPRECATED: Generate a build cookbook for use with #{ChefCLI::Dist::WORKFLOW}")
def self.banner_headline
<<~E
Usage: #{ChefCLI::Dist::EXEC} generate GENERATOR [options]
@@ -80,13 +79,9 @@
def initialize(*args)
super
end
def run(params)
- if params[0] == "build-cookbook"
- warn "[DEPRECATION] Chef Workflow (Delivery) is end of life (EOL) as of December 31, 2020 and this generator subcommand has been removed".freeze
- return 1
- end
if ( generator_spec = generator_for(params[0]) )
params.shift
generator = GeneratorCommands.build(generator_spec.class_name, params)
generator.run
else