# File lib/ohai/application.rb, line 109 def exit!(msg, err = -1) Chef::Log.debug(msg) Process.exit err end
Log a fatal error message to both STDERR and the Logger, exit the application
# File lib/ohai/application.rb, line 103 def fatal!(msg, err = -1) STDERR.puts("FATAL: #{msg}") Chef::Log.fatal(msg) Process.exit err end
# File lib/ohai/application.rb, line 83 def configure_logging Ohai::Log.init(Ohai::Config[:log_location]) Ohai::Log.level = Ohai::Config[:log_level] end
# File lib/ohai/application.rb, line 73 def configure_ohai @attributes = parse_options @attributes = nil if @attributes.empty? Ohai::Config.merge!(config) if Ohai::Config[:directory] Ohai::Config[:plugin_path] << Ohai::Config[:directory] end end
Generated with the Darkfish Rdoc Generator 2.