Package pybaz :: Package backends :: Module commandline :: Class CommandLineBackend
[frames] | no frames]

Class CommandLineBackend

source code

object --+
         |
        CommandLineBackend

Facade for command-line back-end options.



Instance Methods
 
__init__(self, command, module, spawning, logger)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
 
null_cmd(self, args, chdir=None)
 
one_cmd(self, args, chdir=None)
 
sequence_cmd(self, args, expected=(0), chdir=None, stderr_too=False)
 
text_cmd(self, args, chdir=None)
 
status_cmd(self, args, expected, chdir=None)
 
status_one_cmd(self, args, expected, chdir=None)
 
status_text_cmd(self, args, expected)

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Properties
  command
Name of the command line program.
  spawning_strategy
`SpawningStrategy` factory used to create the spawner.
  logger
Command line logger.
  version
The current command version.
  compatibility

Inherited from object: __class__

Method Details

__init__(self, command, module, spawning, logger)
(Constructor)

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

Overrides: object.__init__
(inherited documentation)

Property Details

command

Name of the command line program.

:type: str

Get Method:
pybaz.backends.commandline.CommandLineBackend._get_command(self)
Set Method:
pybaz.backends.commandline.CommandLineBackend._set_command(self, command)

spawning_strategy

`SpawningStrategy` factory used to create the spawner.

:type: factory of `SpawningStrategy`

Get Method:
pybaz.backends.commandline.CommandLineBackend._get_spawning(self)
Set Method:
pybaz.backends.commandline.CommandLineBackend._set_spawning(self, spawning)

logger

Command line logger.

:type: `logger.Logger`

Get Method:
pybaz.backends.commandline.CommandLineBackend._get_logger(self)
Set Method:
pybaz.backends.commandline.CommandLineBackend._set_logger(self, logger)

version


The current command version.

Instance of pybaz.compat.BazaarCommandVersion.

Get Method:
pybaz.backends.commandline.CommandLineBackend._get_version(self)

compatibility

Get Method:
pybaz.backends.commandline.CommandLineBackend._get_compat(self)