Example #1
0
    def _push(self, argv):
        (remote_res, folder) = self._get_and_folder(argv)
        sync = SyncEngine(folder)

        sync.push(remote_res, self._config.options.dry_run)
Example #2
0
    def _pull(self, argv):
        (remote_res, folder) = self._get_and_folder(argv)
        sync = SyncEngine(folder)

        sync.pull(remote_res, globals.options.dry_run)
Example #3
0
    def _push(self, argv):
        (remote_res, folder) = self._get_and_folder(argv)
        sync = SyncEngine(folder)

        sync.push(remote_res, globals.options.dry_run)
Example #4
0
    def sync_push(self, opts):
        if opts.path is None:
            raise Exception("You must provide the path to the local folder")

        sync = SyncEngine(opts.path)
        sync.push(self._entity, opts.dry_run)
Example #5
0
    def sync_push(self, opts):
        if opts.path is None:
            raise Exception("You must provide the path to the local folder")

        sync = SyncEngine(opts.path)
        sync.push(self._entity, opts.dry_run)
Example #6
0
    def _pull(self, argv):
        (remote_res, folder) = self._get_and_folder(argv)
        sync = SyncEngine(folder)

        sync.pull(remote_res, self._config.options.dry_run)