[molecule.specs.skel] Add GenericSpec.output() method

This commit is contained in:
Fabio Erculiani
2013-03-25 13:34:24 +00:00
parent 3046af38e9
commit 38ee5b4b09
2 changed files with 7 additions and 0 deletions
+1
View File
@@ -60,6 +60,7 @@ def parse():
if os.path.isfile(el) and os.access(el, os.R_OK):
obj = SpecParser(el)
el_data = obj.parse()
obj.output()
del obj
if el_data:
good = check_super_user(el_data)
+6
View File
@@ -194,3 +194,9 @@ class GenericSpec(object):
and executed by molecule.handlers.Runner
"""
raise NotImplementedError()
def output(self, metadata):
"""
Given the parsed metadata as input, execute any kind of logging or
stdout/stderr push. This method is a no-op.
"""