context based changes

Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
This commit is contained in:
Nico Schottelius 2013-08-28 15:39:17 +02:00
parent 18c5e60ab1
commit 136ddc05b5
5 changed files with 7 additions and 5 deletions

View file

@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
#
# 2011-2012 Nico Schottelius (nico-cdist at schottelius.org)
# 2011-2013 Nico Schottelius (nico-cdist at schottelius.org)
# 2012 Steven Armstrong (steven-cdist at armstrong.cc)
#
# This file is part of cdist.

View file

@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
#
# 2011 Steven Armstrong (steven-cdist at armstrong.cc)
# 2011-2012 Nico Schottelius (nico-cdist at schottelius.org)
# 2011-2013 Nico Schottelius (nico-cdist at schottelius.org)
#
# This file is part of cdist.
#

View file

@ -53,7 +53,11 @@ class CodeTestCase(test.CdistTestCase):
self.remote_base_path = self.mkdtemp()
remote_exec = self.remote_exec
remote_copy = self.remote_copy
self.remote = remote.Remote(self.target_host, self.remote_base_path, remote_exec, remote_copy)
self.remote = remote.Remote(
target_host=self.target_host,
remote_exec=remote_exec,
remote_copy=remote_copy)
self.remote.base_path = self.remote_base_path
self.remote.create_files_dirs()
self.code = code.Code(self.target_host, self.local, self.remote)

View file

@ -33,7 +33,6 @@ from cdist.exec import local
from cdist import emulator
from cdist import core
from cdist import config
import cdist.context
import os.path as op
my_dir = op.abspath(op.dirname(__file__))

View file

@ -56,7 +56,6 @@ class ExplorerClassTestCase(test.CdistTestCase):
self.remote = remote.Remote(
self.target_host,
self.remote_base_path,
self.remote_exec,
self.remote_copy)
self.remote.create_files_dirs()