lib/chef-dk/command/generator_commands/repo.rb in chef-dk-4.0.60 vs lib/chef-dk/command/generator_commands/repo.rb in chef-dk-4.1.7

- old
+ new

@@ -1,7 +1,7 @@ # -# Copyright:: Copyright (c) 2014-2018 Chef Software Inc. +# Copyright:: Copyright (c) 2014-2019 Chef Software Inc. # License:: Apache License, Version 2.0 # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at @@ -13,11 +13,12 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # -require "chef-dk/command/generator_commands/base" +require_relative "base" +require_relative "../../dist" module ChefDK module Command module GeneratorCommands @@ -25,10 +26,10 @@ # chef generate repo path/to/basename --generator-cookbook=path/to/generator --policy-only # # Generates a full "chef-repo" directory structure. class Repo < Base - banner "Usage: chef generate repo NAME [options]" + banner "Usage: #{ChefDK::Dist::EXEC} generate repo NAME [options]" attr_reader :errors attr_reader :repo_name_or_path option :policy_only,