diff options
author | Tim Smith <tsmith84@gmail.com> | 2020-07-07 15:31:02 -0700 |
---|---|---|
committer | Tim Smith <tsmith84@gmail.com> | 2020-07-07 17:30:49 -0700 |
commit | ed460911a49716817ded2986e81a5116dfbb795e (patch) | |
tree | 05939eafb0047711ff008e89fe84312fbfdc9531 /omnibus/config | |
parent | 824d9da7173d0dff9bb2786dcf5584e53e9866eb (diff) | |
download | chef-ed460911a49716817ded2986e81a5116dfbb795e.tar.gz |
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 <tsmith@chef.io>
Diffstat (limited to 'omnibus/config')
-rw-r--r-- | omnibus/config/projects/angrychef.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/omnibus/config/projects/angrychef.rb b/omnibus/config/projects/angrychef.rb index eb6dce476d..c5d110408d 100644 --- a/omnibus/config/projects/angrychef.rb +++ b/omnibus/config/projects/angrychef.rb @@ -20,7 +20,7 @@ # `config/project/chef.rb`. # current_file = __FILE__ -chef_project_contents = IO.read(File.expand_path("../chef.rb", __FILE__)) +chef_project_contents = IO.read(File.expand_path('chef.rb', __dir__)) instance_eval chef_project_contents name "angrychef" |