def launch(self): sent = remote.send(self.config['local_root'], self.config['remote_host'], self.config['remote_root']) if sent: result = remote.remote_exec(self.config['remote_host'], self.config['remote_dir'], self.config['command']) if result or _receive_if_failed(self.config): remote.receive(self.config['local_root'], self.config['remote_host'], self.config['remote_root']) else: logging.warning('Result not synced from server.') logging.info('To sync it manually use' + ' `' + sys.argv[0] + ' -r`')
def launch(self): sent = remote.send(self.config['local_root'], self.config['remote_host'], self.config['remote_root'], self.config['rsync'], self.config['dry_run']) if sent: result = remote.remote_exec(self.config['remote_host'], self.config['remote_dir'], self.config['before_exec'], self.config['command'], self.config['dry_run']) if result or _receive_if_failed(self.config): remote.receive(self.config['local_root'], self.config['remote_host'], self.config['remote_root'], self.config['rsync'], self.config['dry_run']) else: logging.warning('Result not synced from server.') logging.info('To sync it manually use' + ' `' + sys.argv[0] + ' -r`')
def launch(self): return remote.receive(self.config['local_root'], self.config['remote_host'], self.config['remote_root'], self.config['rsync'], self.config['dry_run'])
def launch(self): return remote.receive(self.config['local_root'], self.config['remote_host'], self.config['remote_root'])