refactor out_path -> base_path

Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
This commit is contained in:
Nico Schottelius 2013-08-19 13:35:03 +02:00
parent 866645679a
commit b527479620
2 changed files with 4 additions and 4 deletions

View file

@ -89,7 +89,7 @@ class Code(object):
self.remote = remote
self.env = {
'__target_host': self.target_host,
'__global': self.local.out_path,
'__global': self.local.base_path,
}
def _run_gencode(self, cdist_object, which):

View file

@ -47,11 +47,11 @@ class ConfigInstallRunTestCase(test.CdistTestCase):
os.environ = os.environ.copy()
self.temp_dir = self.mkdtemp()
self.out_dir = os.path.join(self.temp_dir, "out")
os.mkdir(self.out_dir)
self.local_dir = os.path.join(self.temp_dir, "local")
os.mkdir(self.local_dir)
self.local = cdist.exec.local.Local(
target_host=self.target_host,
out_path=self.out_dir)
base_path=self.local_dir)
self.remote_dir = os.path.join(self.temp_dir, "remote")
os.mkdir(self.remote_dir)