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/mixin/shell_out.rb | |
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/mixin/shell_out.rb')
-rw-r--r-- | lib/chef/mixin/shell_out.rb | 17 |
1 files changed, 2 insertions, 15 deletions
diff --git a/lib/chef/mixin/shell_out.rb b/lib/chef/mixin/shell_out.rb index e136fe09ba..c3eacc57f0 100644 --- a/lib/chef/mixin/shell_out.rb +++ b/lib/chef/mixin/shell_out.rb @@ -16,26 +16,13 @@ # limitations under the License. require "mixlib/shellout/helper" unless defined?(Mixlib::ShellOut::Helper) -require_relative "../log" -require_relative "../config" -require_relative "../chef_class" +require "chef/mixin/chef_utils_wiring" unless defined?(Chef::Mixin::ChefUtilsWiring) class Chef module Mixin module ShellOut include Mixlib::ShellOut::Helper - - def __config - Chef::Config - end - - def __log - Chef::Log - end - - def __transport_connection - Chef.run_context&.transport_connection - end + include Chef::Mixin::ChefUtilsWiring end end end |