예제 #1
0
파일: service.py 프로젝트: Flid/SmartHouse
    def get(self):
        # TODO check auth

        updater = AutoUpdater(
            settings.GIT_BRANCH,
            get_git_root(__file__),
        )
        updater.run()

        # We should never come here because of the restart
        return self.render_json({'status': 'error'})
예제 #2
0
def read_values():
    AutoUpdater(
        'master',
        get_git_root(__file__),
        'systemctl restart sensor_communicator',
    ).run(restart=True)
예제 #3
0
파일: utils.py 프로젝트: Flid/SmartHouseUI
def self_update():
    AutoUpdater(
        'master',
        get_git_root(__file__),
    ).run()