summaryrefslogtreecommitdiff
path: root/lib/chef/formatters
diff options
context:
space:
mode:
authorTim Smith <tsmith84@gmail.com>2020-09-20 23:57:26 -0700
committerTim Smith <tsmith84@gmail.com>2020-09-20 23:57:26 -0700
commiteb49e6b6b8c160da0cf53f05fefa1c90d7a3a993 (patch)
treeec146beb48dda66abdefe0d0330c71c053498b18 /lib/chef/formatters
parentcb6ee920847d91b8c6cd8e7cb210b8a4fc730e69 (diff)
downloadchef-eb49e6b6b8c160da0cf53f05fefa1c90d7a3a993.tar.gz
Gate requires in chef-utils and chef-config as wellrequires
Update the cop config to handle those as well Signed-off-by: Tim Smith <tsmith@chef.io>
Diffstat (limited to 'lib/chef/formatters')
-rw-r--r--lib/chef/formatters/indentable_output_stream.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/formatters/indentable_output_stream.rb b/lib/chef/formatters/indentable_output_stream.rb
index d508a32eb0..c2d835d951 100644
--- a/lib/chef/formatters/indentable_output_stream.rb
+++ b/lib/chef/formatters/indentable_output_stream.rb
@@ -20,7 +20,7 @@ class Chef
# pastel.decorate is a lightweight replacement for highline.color
def pastel
@pastel ||= begin
- require "pastel"
+ require "pastel" unless defined?(Pastel)
Pastel.new
end
end