Module clush :: Class ClushConfig
[hide private]
[frames] | no frames]

Class ClushConfig

source code


Config class for clush (specialized ConfigParser)

Instance Methods [hide private]
 
__init__(self) source code
 
verbose_print(self, level, message) source code
 
max_fdlimit(self)
Make open file descriptors soft limit the max.
source code
 
set_main(self, option, value) source code
 
getint(self, section, option) source code
 
getfloat(self, section, option) source code
 
_get_optional(self, section, option) source code
 
get_color(self) source code
 
get_verbosity(self) source code
 
get_fanout(self) source code
 
get_connect_timeout(self) source code
 
get_command_timeout(self) source code
 
get_ssh_user(self) source code
 
get_ssh_path(self) source code
 
get_ssh_options(self) source code

Inherited from ConfigParser.ConfigParser: get, items

Inherited from ConfigParser.ConfigParser (private): _interpolate, _interpolation_replace

Inherited from ConfigParser.RawConfigParser: add_section, defaults, getboolean, has_option, has_section, options, optionxform, read, readfp, remove_option, remove_section, sections, set, write

Inherited from ConfigParser.RawConfigParser (private): _get, _read

Class Variables [hide private]
  main_defaults = {'color': 'never', 'command_timeout': '0', 'co...

Inherited from ConfigParser.ConfigParser (private): _KEYCRE

Inherited from ConfigParser.RawConfigParser: OPTCRE, SECTCRE

Inherited from ConfigParser.RawConfigParser (private): _boolean_states

Method Details [hide private]

__init__(self)
(Constructor)

source code 
Overrides: ConfigParser.RawConfigParser.__init__

getint(self, section, option)

source code 
Overrides: ConfigParser.RawConfigParser.getint

getfloat(self, section, option)

source code 
Overrides: ConfigParser.RawConfigParser.getfloat

Class Variable Details [hide private]

main_defaults

Value:
{'color': 'never',
 'command_timeout': '0',
 'connect_timeout': '30',
 'fanout': '64',
 'history_size': '100',
 'verbosity': '1'}