[molecule.specs] GenericSpec: store the .spec file path inside the class object

This commit is contained in:
Fabio Erculiani
2013-03-25 11:58:33 +00:00
parent 552e247dc2
commit 3046af38e9
2 changed files with 10 additions and 1 deletions
+1 -1
View File
@@ -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()
+9
View File
@@ -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.