Default privileged runner implementation.
This class defines an interface for running a command with
privilege on the system. The implementation of this class is
kept to a bare minimum; it assumes that we already have privilege.
Don't use this class directly; instead, use its interface and
set the privileged runner in your config group to your class.
Methods
|
|
run
|
|
run
|
run ( self, command )
Run the given command with privilege.
Exceptions
|
|
RuntimeError, "Command %s failed to execute, status %X" %( command, retval )
|
|
|