[molecule.specs] GenericSpec: store the .spec file path inside the class object
This commit is contained in:
@@ -222,7 +222,7 @@ class SpecParser(object):
|
||||
" not supported, strategy: %s" % (
|
||||
self.filepath, execution_strategy,))
|
||||
|
||||
self.__plugin = plugin()
|
||||
self.__plugin = plugin(filepath)
|
||||
self.vital_parameters = self.__plugin.vital_parameters()
|
||||
self.parameters = self.__plugin.parameters()
|
||||
|
||||
|
||||
@@ -80,6 +80,15 @@ class GenericSpec(object):
|
||||
# Molecule Plugin factory support
|
||||
BASE_PLUGIN_API_VERSION = 1
|
||||
|
||||
def __init__(self, spec_file):
|
||||
"""
|
||||
Object constructor.
|
||||
|
||||
@param spec_file: path to the spec file to be parsed
|
||||
@type spec_file: string
|
||||
"""
|
||||
self._spec_file = spec_file
|
||||
|
||||
def _command_splitter(self, string):
|
||||
"""
|
||||
Split a command string into list using shlex.
|
||||
|
||||
Reference in New Issue
Block a user