community-cookbooks/ohai/resources/plugin.rb
# return the chef config files dir or fail hard
return the chef config files dir or fail hard
return the chef config files dir or fail hard
def chef_config_path
    if Chef::Config['config_file']
      ::File.dirname(Chef::Config['config_file'])
    else
      raise("No chef config file defined. Are you running \
chef-solo? If so you will need to define a path for the ohai_plugin as the \
path cannot be determined")
    end
  end
def chef_config_path if Chef :: Config [ 'config_file' ] :: File . dirname ( Chef :: Config [ 'config_file' ] ) else raise ( "No chef config file defined. Are you running \
chef-solo? If so you will need to define a path for the ohai_plugin as the \
path cannot be determined" ) end end
return the chef config files dir or fail hard
return the chef config files dir or fail hard