def copy_template(self, template, name='main.tf'):
     """Copy template to Terraform module folder."""
     template_file = os.path.join(self.template_dir, template)
     copy_file(template_file, os.path.join(self.tf_test_dir, name))
Exemple #2
0
 def copy_runway(self, template):
     """Copy runway template to proper directory."""
     template_file = os.path.join(self.fixtures_dir,
                                  'runway-{}.yml'.format(template))
     copy_file(template_file,
               os.path.join(self.sources_test_dir, 'runway.yml'))
 def copy_runway(self, template):
     """Copy runway template to proper directory."""
     template_file = os.path.join(self.template_dir,
                                  'runway-{}.yml'.format(template))
     copy_file(template_file, os.path.join(self.base_dir, 'runway.yml'))
Exemple #4
0
 def copy_runway(self, template):
     """Copy runway template to proper directory."""
     template_file = os.path.join(
         self.fixtures_dir, "runway-{}.yml".format(template)
     )
     copy_file(template_file, os.path.join(self.staticsite_test_dir, "runway.yml"))