Class Larch::Config
In: lib/larch/config.rb
lib/larch/errors.rb
Parent: Object

Methods

[]   fetch   load_file   method_missing   new   validate  

Classes and Modules

Class Larch::Config::Error

Constants

DEFAULT = { 'all' => false, 'all-subscribed' => false, 'config' => File.join('~', '.larch', 'config.yaml'), 'database' => File.join('~', '.larch', 'larch.db'), 'delete' => false, 'dry-run' => false, 'exclude' => [], 'exclude-file' => nil, 'expunge' => false, 'from' => nil, 'from-folder' => nil, # actually INBOX; see validate() 'from-pass' => nil, 'from-user' => nil, 'max-retries' => 3, 'no-create-folder' => false, 'no-recurse' => false, 'ssl-certs' => nil, 'ssl-verify' => false, 'sync-flags' => false, 'to' => nil, 'to-folder' => nil, # actually INBOX; see validate() 'to-pass' => nil, 'to-user' => nil, 'verbosity' => 'info'

Attributes

filename  [R] 
section  [R] 

Public Class methods

Public Instance methods

[](name)

Alias for fetch

Validates the config and resolves conflicting settings.

[Validate]