bin/chef-windows-service in chef-bin-16.4.41 vs bin/chef-windows-service in chef-bin-16.5.64
- old
+ new
@@ -21,10 +21,10 @@
# The file is used by appbundler to generate a ruby file that
# we can execute using the correct gems. The batch file we
# generate will call that file, and will be registered as
# a windows service.
-$:.unshift(File.join(File.dirname(__FILE__), "..", "lib"))
+$:.unshift(File.join(__dir__, "..", "lib"))
require "chef"
require "chef/application/windows_service"
if Chef::Platform.windows?
Chef::Application::WindowsService.mainloop