Class Chef::Application
In: lib/chef/application.rb
lib/chef/application/windows_service.rb
Parent: Object

Methods

Included Modules

Mixlib::CLI

Classes and Modules

Class Chef::Application::Client
Class Chef::Application::Knife
Class Chef::Application::Solo
Class Chef::Application::Wakeup
Class Chef::Application::WindowsService

Public Class methods

Public Instance methods

Parse the configuration file

Initialize and configure the logger. If the configured log location is not STDOUT, but stdout is a TTY and we‘re not daemonizing, we set up a secondary logger with output to stdout. This way, we magically do the right thing when the user has configured logging to a file but they‘re running chef in the shell to debug something.

If the user has configured a formatter, then we skip the magical logger to keep the output pretty.

Reconfigure the application. You‘ll want to override and super this method.

Get this party started

Actually run the application

Initializes Chef::Client instance and runs it

Called prior to starting the application, by the run method

[Validate]