[molecule.specs.skel] Add GenericSpec.output() method
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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.
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user