Commit 97b49706 authored by eric pellegrini's avatar eric pellegrini

renamed variable(s) for better readability

parent 48f71cb6
......@@ -24,7 +24,7 @@ class Packman:
"""This class implements the Packman engine for generating packer template json files and run packer optionally .
"""
def __init__(self, input_file, templates_dir):
def __init__(self, input_file, templates_base_dir):
"""Constructor.
Parameters
......@@ -34,7 +34,7 @@ class Packman:
"""
# The base directory for templates
self._templates_dir = os.path.abspath(templates_dir)
self._templates_base_dir = os.path.abspath(templates_base_dir)
with open(input_file, "r") as fin:
data = yaml.safe_load(fin)
......@@ -81,7 +81,7 @@ class Packman:
template_node = self.get_template(template_name)
# Build the path for the template manifest file (YAML)
manifest_file = os.path.join(self._templates_dir,template_name,"manifest.yml")
manifest_file = os.path.join(self._templates_base_dir,template_name,"manifest.yml")
# Opens the file and load its contents
try:
......@@ -196,7 +196,7 @@ class Packman:
for template in config_hierarchy:
# cd to the the template directory
current_template_dir = os.path.join(self._templates_dir,template)
current_template_dir = os.path.join(self._templates_base_dir,template)
build_dir = os.path.join(current_template_dir,"builds",template)
......@@ -246,6 +246,6 @@ class Packman:
template.set_parent(parent_template)
# Dump the template
ouput_file = os.path.join(self._templates_dir,template_name,"manifest.json")
ouput_file = os.path.join(self._templates_base_dir,template_name,"manifest.json")
template.dump(ouput_file,**kwargs)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment