Exemplo n.º 1
0
class DownloadCli(object):
    def __init__(self, config, limit=None):
        self.mng = Manager(config)
        self.config = config
        self.limit = limit

    def sync_activities(self):
        self.mng.sync_activities(self.limit)

    def sync_tcx(self):
        self.mng.sync_tcx(self.limit)

    def import_tcx(self):
        self.mng.import_tcx()

    def sync(self):
        self.mng.sync(self.limit)
        backuper = Backuper(self.config)
        backuper.backup()

    def clean_imported(self):
        self.mng.clean_imported()
Exemplo n.º 2
0
class InfoCli(object):
    def __init__(self, config, detail=False, limit=None):
        self.mng = Manager(config)
        self.detail = detail
        self.limit = limit

    def environment(self):
        self.mng.environment()

    def write_not_downloaded(self):
        self.mng.write_not_downloaded(self.detail, self.limit)

    def write_not_imported(self):
        self.mng.write_not_imported(self.detail, self.limit)
Exemplo n.º 3
0
 def __init__(self, config, limit=None):
     self.mng = Manager(config)
     self.config = config
     self.limit = limit
Exemplo n.º 4
0
 def __init__(self, config, detail=False, limit=None):
     self.mng = Manager(config)
     self.detail = detail
     self.limit = limit