module Ohai::Mixin::ChefUtilsWiring

Common Dependency Injection wiring for ChefUtils-related modules

Private Instance Methods

__config() click to toggle source
# File lib/ohai/mixin/chef_utils_wiring.rb, line 28
def __config
  Ohai::Config
end
__env_path() click to toggle source

because of target mode we cache the PATH to avoid massive amounts of ‘echo $PATH` remote queries

Calls superclass method
# File lib/ohai/mixin/chef_utils_wiring.rb, line 42
def __env_path
  PathCache.instance.path_cache ||= super
end
__log() click to toggle source
# File lib/ohai/mixin/chef_utils_wiring.rb, line 32
def __log
  logger
end
__transport_connection() click to toggle source
# File lib/ohai/mixin/chef_utils_wiring.rb, line 36
def __transport_connection
  transport_connection
end