diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2020-07-21 19:52:04 -0700 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2020-07-21 19:52:04 -0700 |
commit | eea6d8b2f711225ec266206cbedeff4c147aedb0 (patch) | |
tree | 8ceaf0f324920ed8faa3b1baddc93d7037b063e0 /lib/chef/platform | |
parent | 1cc00a22a6b5cdcabb64644ec322c82adafa7681 (diff) | |
download | chef-eea6d8b2f711225ec266206cbedeff4c147aedb0.tar.gz |
clean up the chefutils wiring with a common helper classlcg/extract-mixlib-shellout
also fixes a FIXME in the YARD
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
Diffstat (limited to 'lib/chef/platform')
-rw-r--r-- | lib/chef/platform/service_helpers.rb | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/lib/chef/platform/service_helpers.rb b/lib/chef/platform/service_helpers.rb index 456e679e03..627fd8d694 100644 --- a/lib/chef/platform/service_helpers.rb +++ b/lib/chef/platform/service_helpers.rb @@ -18,11 +18,13 @@ require_relative "../chef_class" require "chef-utils" unless defined?(ChefUtils::CANARY) +require "chef/mixin/chef_utils_wiring" unless defined?(Chef::Mixin::ChefUtilsWiring) class Chef class Platform module ServiceHelpers include ChefUtils::DSL::Service + include Chef::Mixin::ChefUtilsWiring def service_resource_providers providers = [] @@ -49,20 +51,6 @@ class Chef configs end - private - - def __config - Chef::Config - end - - def __log - Chef::Log - end - - def __transport_connection - Chef.run_context&.transport_connection - end - extend self end end |