ganeti :: utils :: text :: ShellWriter :: Class ShellWriter
[hide private]
[frames] | no frames]

Class ShellWriter

source code


Helper class to write scripts with indentation.

Instance Methods [hide private]
 
__init__(self, fh, indent=True)
Initializes this class.
source code
 
IncIndent(self)
Increase indentation level by 1.
source code
 
DecIndent(self)
Decrease indentation level by 1.
source code
 
Write(self, txt, *args)
Write line to output file.
source code

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

Class Variables [hide private]
  INDENT_STR = " "
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, fh, indent=True)
(Constructor)

source code 

Initializes this class.

Overrides: object.__init__