Ejemplo n.º 1
0
    def get_web_statuses(self,
                         order_console_by_time=True,
                         extra_templates=None):
        public_html = '../master.chromium/public_html'
        templates = [
            '../master.client.dart/templates', '../master.chromium/templates'
        ]
        if extra_templates:
            templates = extra_templates + templates
        master_port = self._active_master.master_port
        master_port_alt = self._active_master.master_port_alt
        kwargs = {
            'public_html': public_html,
            'templates': templates,
            'order_console_by_time': order_console_by_time,
        }

        statuses = []
        statuses.append(
            master_utils.CreateWebStatus(master_port,
                                         allowForce=True,
                                         **kwargs))
        statuses.append(
            master_utils.CreateWebStatus(master_port_alt,
                                         allowForce=False,
                                         **kwargs))
        return statuses
Ejemplo n.º 2
0
    def get_web_statuses(self, order_console_by_time=False):
        public_html = '../master.chromium/public_html'
        templates = [
            '../master.client.dart/templates', '../master.chromium/templates'
        ]
        master_port = self._active_master.master_port
        master_port_alt = self._active_master.master_port_alt
        kwargs = {
            'public_html': public_html,
            'templates': templates,
            'order_console_by_time': order_console_by_time,
        }

        statuses = []
        statuses.append(
            master_utils.CreateWebStatus(master_port,
                                         allowForce=True,
                                         **kwargs))
        statuses.append(
            master_utils.CreateWebStatus(master_port_alt,
                                         allowForce=False,
                                         **kwargs))

        http_status_push_url = self._active_master.http_status_push_url
        if self._active_master.is_production_host and http_status_push_url:
            statuses.append(HttpStatusPush(serverUrl=http_status_push_url))
        return statuses
Ejemplo n.º 3
0
  def get_web_statuses(self):
    public_html = '../master.chromium/public_html'
    templates = ['../master.client.dart/templates',
                 '../master.chromium/templates']
    master_port = self._active_master.master_port
    master_port_alt = self._active_master.master_port_alt

    statuses = []
    statuses.append(master_utils.CreateWebStatus(master_port,
                                                 allowForce=True,
                                                 public_html=public_html,
                                                 templates=templates))
    statuses.append(
        master_utils.CreateWebStatus(master_port_alt, allowForce=False))

    http_status_push_url = self._active_master.http_status_push_url
    if self._active_master.is_production_host and http_status_push_url:
      statuses.append(HttpStatusPush(serverUrl=http_status_push_url))
    return statuses