diff options
author | Tim Smith <tsmith84@gmail.com> | 2021-01-22 19:54:12 -0800 |
---|---|---|
committer | Tim Smith <tsmith84@gmail.com> | 2021-01-26 08:53:11 -0800 |
commit | a12f9587eb10d5ea910f5b803815f59ffe53d0ed (patch) | |
tree | 584135f7c5fb85545e62f461b841ef3f1d4927ca /spec/support/chef_helpers.rb | |
parent | df6a10467dfeff3c8d46a24d688597e690b38cd4 (diff) | |
download | chef-service_manager.tar.gz |
Chef 17: Remove windows service manager capabilitiesservice_manager
This is something we've recommended against using for many years now. Windows users should instead run Chef Infra Client using a Scheduled Task which is far more reliable and has the added benefit of requiring zero CPU or memory while not running.
Signed-off-by: Tim Smith <tsmith@chef.io>
Diffstat (limited to 'spec/support/chef_helpers.rb')
-rw-r--r-- | spec/support/chef_helpers.rb | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/spec/support/chef_helpers.rb b/spec/support/chef_helpers.rb index 6a0ca878cd..3738c4a41e 100644 --- a/spec/support/chef_helpers.rb +++ b/spec/support/chef_helpers.rb @@ -40,22 +40,6 @@ def make_tmpname(prefix_suffix, n = nil) path << suffix end -# This is a helper to determine if the ruby in the PATH contains -# win32/service gem. windows_service_manager tests create a windows -# service that starts with the system ruby and requires this gem. -def system_windows_service_gem? - windows_service_gem_check_command = %{ruby -r "win32/daemon" -e ":noop" > #{File::NULL} 2>&1} - if defined?(Bundler) - Bundler.with_unbundled_env do - # This returns true if the gem can be loaded - system(windows_service_gem_check_command) - end - else - # This returns true if the gem can be loaded - system(windows_service_gem_check_command) - end -end - # This is a helper to canonicalize paths that we're using in the file # tests. def canonicalize_path(path) |