cleanups/fixes
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
parent
f8853467f3
commit
c1e7731992
2 changed files with 16 additions and 25 deletions
|
|
@ -91,7 +91,7 @@ class Context:
|
|||
|
||||
# Create directories
|
||||
self.__init_out_paths()
|
||||
|
||||
self.__init_remote_paths()
|
||||
self.__init_env()
|
||||
|
||||
def cleanup(self):
|
||||
|
|
@ -122,6 +122,12 @@ class Context:
|
|||
os.mkdir(self.global_explorer_out_path)
|
||||
os.mkdir(self.bin_path)
|
||||
|
||||
def __init_remote_paths(self):
|
||||
"""Initialise remote directory structure"""
|
||||
|
||||
self.remove_remote_path(self.remote_base_path)
|
||||
self.remote_mkdir(self.remote_base_path)
|
||||
|
||||
def remote_mkdir(self, directory):
|
||||
"""Create directory on remote side"""
|
||||
cdist.exec.run_or_fail(["mkdir", "-p", directory], remote_prefix=True)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue