def on_branches(self, message=None): wi = Deployer(project_id=self.room) try: branches = wi.list_branch() emit('branches', {'event': 'branches', 'data': branches}, room=self.room) except Exception as e: emit('branches', {'event': 'error', 'data': {'message': e.message}}, room=self.room)
def on_branches(self, message=None): wi = Deployer(project_id=self.room) try: branches = wi.list_branch() emit('branches', {'event': 'branches', 'data': branches}, room=self.room) except Exception as e: emit('branches', {'event': 'error', 'data': {'message': e.message}}, room=self.room)
def on_branches(self, message): wi = Deployer(task_id=self.room) branches = wi.list_branch() emit('console', { 'event': 'repo:branches', 'data': branches }, room=self.room)
def branches(self, project_id=None): """ fetch project list or one item /tag/ :return: """ wi = Deployer(project_id=project_id) branches = wi.list_branch() return self.render_json(data={ 'branches': branches, })
def branches(self, project_id=None): """ fetch project list or one item /tag/ :return: """ wi = Deployer(project_id=project_id) branches = wi.list_branch() return self.render_json(data={ 'branches': branches, })