Package buildbot :: Package scripts :: Module runner :: Class MasterOptions
[frames] | no frames]

Class MasterOptions

source code

              object --+                
                       |                
                    dict --+            
                           |            
twisted.python.usage.Options --+        
                               |        
          OptionsWithOptionsFile --+    
                                   |    
                           MakerBase --+
                                       |
                                      MasterOptions

Instance Methods
 
getSynopsis(self)
Returns a string containing a description of these options and how to pass them to the executed file.
source code
 
postOptions(self)
I am called after the options are parsed.
source code

Inherited from MakerBase: opt_h, parseArgs

Inherited from OptionsWithOptionsFile: __init__

Inherited from twisted.python.usage.Options: __hash__, __str__, getUsage, opt_help, opt_version, parseOptions

Inherited from dict: __cmp__, __contains__, __delitem__, __eq__, __ge__, __getattribute__, __getitem__, __gt__, __iter__, __le__, __len__, __lt__, __ne__, __new__, __repr__, __setitem__, __sizeof__, clear, copy, fromkeys, get, has_key, items, iteritems, iterkeys, itervalues, keys, pop, popitem, setdefault, update, values

Inherited from object: __delattr__, __format__, __reduce__, __reduce_ex__, __setattr__, __subclasshook__

Class Variables
  optFlags = [['force', 'f', 'Re-use an existing directory (will...
  optParameters = [['config', 'c', 'master.cfg', 'name of the bu...
  longdesc = '\n This command creates a buildmaster working d...

Inherited from OptionsWithOptionsFile: buildbotOptions

Inherited from twisted.python.usage.Options: defaultSubCommand, parent, subCommand

Properties

Inherited from object: __class__

Method Details

getSynopsis(self)

source code 

Returns a string containing a description of these options and how to pass them to the executed file.

Overrides: twisted.python.usage.Options.getSynopsis
(inherited documentation)

postOptions(self)

source code 

I am called after the options are parsed.

Override this method in your subclass to do something after the options have been parsed and assigned, like validate that all options are sane.

Overrides: twisted.python.usage.Options.postOptions
(inherited documentation)

Class Variable Details

optFlags

Value:
[['force',
  'f',
  'Re-use an existing directory (will not overwrite master.cfg file)']\
,
 ['relocatable', 'r', 'Create a relocatable buildbot.tac'],
 ['no-logrotate',
  'n',
  'Do not permit buildmaster rotate logs by itself']]

optParameters

Value:
[['config', 'c', 'master.cfg', 'name of the buildmaster config file'],
 ['log-size',
  's',
  '10000000',
  'size at which to rotate twisted log files'],
 ['log-count',
  'l',
  '10',
...

longdesc

Value:
'''
    This command creates a buildmaster working directory and buildbot.\
tac file.
    The master will live in <dir> and create various files there.  If
    --relocatable is given, then the resulting buildbot.tac file will \
be
    written such that its containing directory is assumed to be the ba\
sedir.
...