diff options
author | Tim Smith <tsmith84@gmail.com> | 2020-03-24 15:44:18 -0700 |
---|---|---|
committer | Tim Smith <tsmith84@gmail.com> | 2020-03-31 13:19:55 -0700 |
commit | 9a0b39e849222c2ec3fb8b4f0fece7ccceb05bc7 (patch) | |
tree | 241346951ad42c883d66f3baeeee82b95b54c64f | |
parent | c1a8787e779f6afecd71b587fa3c320d3f3b4bb3 (diff) | |
download | chef-9a0b39e849222c2ec3fb8b4f0fece7ccceb05bc7.tar.gz |
Switch to RUBY_PLATFORM for the windows check
Merging in this check broke the build tests on Windows hosts.
Signed-off-by: Tim Smith <tsmith@chef.io>
-rw-r--r-- | spec/support/platforms/win32/spec_service.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/support/platforms/win32/spec_service.rb b/spec/support/platforms/win32/spec_service.rb index f43e4a15fb..a29a5c94a8 100644 --- a/spec/support/platforms/win32/spec_service.rb +++ b/spec/support/platforms/win32/spec_service.rb @@ -16,7 +16,7 @@ # limitations under the License. # -if ChefUtils.windows? +if RUBY_PLATFORM =~ /mswin|mingw|windows/ require "win32/daemon" class SpecService < ::Win32::Daemon |