Esempio n. 1
0
 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)
Esempio n. 2
0
 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)
Esempio n. 3
0
 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)
Esempio n. 4
0
    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,
        })
Esempio n. 5
0
    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,
        })