summaryrefslogtreecommitdiff
path: root/lib/chef/platform
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2020-07-21 19:52:04 -0700
committerLamont Granquist <lamont@scriptkiddie.org>2020-07-21 19:52:04 -0700
commiteea6d8b2f711225ec266206cbedeff4c147aedb0 (patch)
tree8ceaf0f324920ed8faa3b1baddc93d7037b063e0 /lib/chef/platform
parent1cc00a22a6b5cdcabb64644ec322c82adafa7681 (diff)
downloadchef-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.rb16
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