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
Class Variables [hide private]
  INDENT_STR = " "