diff options
author | Tim Smith <tsmith84@gmail.com> | 2020-09-08 23:57:36 -0700 |
---|---|---|
committer | Tim Smith <tsmith84@gmail.com> | 2020-09-09 15:01:13 -0700 |
commit | bd6f49e04f56729853f54f2d2d94356edc2c6e8c (patch) | |
tree | b5dafed28e255c193c3b2996ccd7f52b88054801 /bin | |
parent | b6c2173bf578a8f1b44aeea2bc5eef9288e48964 (diff) | |
download | chef-bd6f49e04f56729853f54f2d2d94356edc2c6e8c.tar.gz |
Use __dir__ instead of getting the dir of __FILE__
This is a bit easier to read
Signed-off-by: Tim Smith <tsmith@chef.io>
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/knife | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -18,7 +18,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -$:.unshift(File.expand_path(File.join(File.dirname(__FILE__), "..", "lib"))) +$:.unshift(File.expand_path(File.join(__dir__, "..", "lib"))) require "chef/application/knife" Chef::Application::Knife.new.run |