forked from ungleich-public/cdist
do not reference scp anymore
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
parent
5a7e4b2f32
commit
919f67184a
1 changed files with 4 additions and 8 deletions
|
@ -125,17 +125,13 @@ class Path:
|
||||||
def transfer_dir(self, source, destination):
|
def transfer_dir(self, source, destination):
|
||||||
"""Transfer directory and previously delete the remote destination"""
|
"""Transfer directory and previously delete the remote destination"""
|
||||||
self.remove_remote_dir(destination)
|
self.remove_remote_dir(destination)
|
||||||
cdist.exec.run_or_fail(["scp", "-qr", source,
|
cdist.exec.run_or_fail([os.environ['__remote_copy'], "-r", source,
|
||||||
self.remote_user + "@" +
|
self.target_host + ":" + destination])
|
||||||
self.target_host + ":" +
|
|
||||||
destination])
|
|
||||||
|
|
||||||
def transfer_file(self, source, destination):
|
def transfer_file(self, source, destination):
|
||||||
"""Transfer file"""
|
"""Transfer file"""
|
||||||
cdist.exec.run_or_fail(["scp", "-q", source,
|
cdist.exec.run_or_fail([os.environ['__remote_copy'], source,
|
||||||
self.remote_user + "@" +
|
self.target_host + ":" + destination])
|
||||||
self.target_host + ":" +
|
|
||||||
destination])
|
|
||||||
|
|
||||||
def global_explorer_output_path(self, explorer):
|
def global_explorer_output_path(self, explorer):
|
||||||
"""Returns path of the output for a global explorer"""
|
"""Returns path of the output for a global explorer"""
|
||||||
|
|
Loading…
Reference in a new issue