Пример #1
0
    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`')
Пример #2
0
    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`')
Пример #3
0
 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'])
Пример #4
0
 def launch(self):
     return remote.receive(self.config['local_root'], self.config['remote_host'], self.config['remote_root'])