linenr += 1
line = line.strip()
- # Perform a bckslash at the end of the line
+ # Perform a backslash at the end of the line
line = lastrow + line
match = re.search(r'\\$', line)
if match:
@type: dict
'''
+ self.scripts = {}
+ '''
+ @ivar: list of all named scripts found in configuration
+ @type: list
+ '''
+
#################################################
# Create a logger object
self.logger = logging.getLogger('pylogrotate')
'force': self.force,
'local_dir': self.local_dir,
'mail_cmd': self.mail_cmd,
+ 'scripts': self.scripts,
'state_file': self.state_file,
'test': self.test,
'verbose': self.verbose,
+ ':\n' + str(config_reader) )
try:
- self.config = config_reader.get_config()
+ self.config = config_reader.get_config()
+ self.scripts = config_reader.get_scripts()
except LogrotateConfigurationError, e:
self.logger.error( str(e) )
sys.exit(10)