diff --git a/molecule/cmdline.py b/molecule/cmdline.py index 8612dc0..2d5a8f7 100644 --- a/molecule/cmdline.py +++ b/molecule/cmdline.py @@ -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) diff --git a/molecule/specs/skel.py b/molecule/specs/skel.py index 327b551..c2486f0 100644 --- a/molecule/specs/skel.py +++ b/molecule/specs/skel.py @@ -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. + """