예제 #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
파일: actions.py 프로젝트: gafnium/rr
    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
파일: actions.py 프로젝트: gafnium/rr
 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'])