You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
557 B
13 lines
557 B
# FIXME: To Copy
|
|
def transfer_dir(self, source, destination):
|
|
"""Transfer directory and previously delete the remote destination"""
|
|
self.remove_remote_dir(destination)
|
|
cdist.exec.run_or_fail(os.environ['__remote_copy'].split() +
|
|
["-r", source, self.target_host + ":" + destination])
|
|
|
|
# FIXME: To Copy
|
|
def transfer_file(self, source, destination):
|
|
"""Transfer file"""
|
|
cdist.exec.run_or_fail(os.environ['__remote_copy'].split() +
|
|
[source, self.target_host + ":" + destination])
|
|
|
|
|