Package gbp :: Module command_wrappers :: Class RunAtCommand
[hide private]
[frames] | no frames]

Class RunAtCommand

object --+    
         |    
   Command --+
             |
            RunAtCommand
Known Subclasses:

Run a command in a specific directory

Instance Methods [hide private]
 
__call__(self, dir='.', *args)
Run the command and convert all errors into CommandExecFailed.

Inherited from Command: __init__, call

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

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__call__(self, dir='.', *args)
(Call operator)

 

Run the command and convert all errors into CommandExecFailed. Assumes that the lower levels printed an error message (the command itself and also via our logging api) - only useful if you only expect 0 as result.

Parameters:
  • quiet - don't log failed execution to stderr. Mostly useful during unit testing
Overrides: Command.__call__
(inherited documentation)