From ed460911a49716817ded2986e81a5116dfbb795e Mon Sep 17 00:00:00 2001 From: Tim Smith Date: Tue, 7 Jul 2020 15:31:02 -0700 Subject: expand_path with __dir__ instead of __FILE__ It's easier to read this at a glance and understand what path we're trying to get. Signed-off-by: Tim Smith --- chef-config/Gemfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'chef-config/Gemfile') diff --git a/chef-config/Gemfile b/chef-config/Gemfile index 1652c89ad6..312045d7c7 100644 --- a/chef-config/Gemfile +++ b/chef-config/Gemfile @@ -1,6 +1,6 @@ source "https://rubygems.org" -gem "chef-utils", path: File.expand_path("../../chef-utils", __FILE__) if File.exist?(File.expand_path("../../chef-utils", __FILE__)) +gem "chef-utils", path: File.expand_path('../chef-utils', __dir__) if File.exist?(File.expand_path('../chef-utils', __dir__)) # Specify your gem's dependencies in chef-config.gemspec gemspec -- cgit v1.2.1