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

Class TryOptions

source code

              object --+            
                       |            
                    dict --+        
                           |        
twisted.python.usage.Options --+    
                               |    
          OptionsWithOptionsFile --+
                                   |
                                  TryOptions

Instance Methods
new empty dictionary

__init__(self)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
opt_builder(self, option) source code
 
opt_properties(self, option) source code
 
opt_patchlevel(self, option) source code
 
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 twisted.python.usage.Options: __hash__, __str__, getUsage, opt_help, opt_version, parseArgs, 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
  optParameters = [['connect', 'c', None, 'how to reach the buil...
  optFlags = [['wait', None, 'wait until the builds have finishe...
  buildbotOptions = [['try_connect', 'connect'], ['try_vc', 'vc'...

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

Properties

Inherited from object: __class__

Method Details

__init__(self)
(Constructor)

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Returns:
new empty dictionary

Overrides: object.__init__
(inherited documentation)

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

optParameters

Value:
[['connect',
  'c',
  None,
  'how to reach the buildmaster, either \'ssh\' or \'pb\''],
 ['tryhost',
  None,
  None,
  'the hostname (used by ssh) for the buildmaster'],
...

optFlags

Value:
[['wait', None, 'wait until the builds have finished'],
 ['dryrun', 'n', 'Gather info, but don\'t actually submit.'],
 ['get-builder-names',
  None,
  'Get the names of available builders. Doesn\'t submit anything. Only\
 supported for \'pb\' connections.']]

buildbotOptions

Value:
[['try_connect', 'connect'],
 ['try_vc', 'vc'],
 ['try_branch', 'branch'],
 ['try_topdir', 'try-topdir'],
 ['try_topfile', 'try-topfile'],
 ['try_host', 'tryhost'],
 ['try_username', 'username'],
 ['try_dir', 'trydir'],
...