lib/chef-cli/command/shell_init.rb in chef-cli-3.0.31 vs lib/chef-cli/command/shell_init.rb in chef-cli-3.0.32
- old
+ new
@@ -13,16 +13,19 @@
# 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 "erb" unless defined?(ERB)
+autoload :ERB, "erb"
require_relative "../commands_map"
require_relative "../builtin_commands"
require_relative "base"
require_relative "../dist"
-require "mixlib/shellout" unless defined?(Mixlib::ShellOut)
+
+module Mixlib
+ autoload :ShellOut, "mixlib/shellout"
+end
module ChefCLI
class ShellCompletionTemplateContext