class ChefConfig::WorkstationConfigLoader

def load

def load
  load_credentials(profile)
  # Ignore it if there's no explicit_config_file and can't find one at a
  # default path.
  unless config_location.nil?
    if explicit_config_file && !path_exists?(config_location)
      raise ChefConfig::ConfigurationError, "Specified config file #{config_location} does not exist"
    end
    # Have to set Config.config_file b/c other config is derived from it.
    Config.config_file = config_location
    apply_config(IO.read(config_location), config_location)
  end
  load_dot_d(Config[:config_d_dir]) if Config[:config_d_dir]
  apply_defaults
end