cdist/lib/cdist/copy.py
Nico Schottelius 0b63919cdd path -> copy
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-10-07 09:46:48 +02:00

13 lines
557 B
Python

# 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])