| Server IP : 35.236.43.222 / Your IP : 216.73.216.143 Web Server : Apache System : Linux order-form-vm-001 5.10.0-37-cloud-amd64 #1 SMP Debian 5.10.247-1 (2025-12-11) x86_64 User : deploy ( 1002) PHP Version : 8.1.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /usr/lib/google-cloud-sdk/lib/surface/emulators/pubsub/__pycache__/ |
Upload File : |
�
��� � �� � d Z ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlm Z ddlm
Z
ej ej j
ej j � � G d � d
ej � � � � ZdS )z%gcloud pubsub emulator start command.� )�absolute_import)�division)�unicode_literals)�arg_parsers)�base)�pubsub_util)�utilc �6 � e Zd ZdZddiZed� � � Zd� ZdS )�StartaJ Start a local pubsub emulator.
This command starts a local pubsub emulator.
On successful start up, you should expect to see:
```
...
[pubsub] This is the Google Pub/Sub fake.
[pubsub] Implementation may be incomplete or differ from the real system.
...
[pubsub] INFO: Server started, listening on 8538
```
�EXAMPLESzK
To start a local pubsub emulator, run:
$ {command} --data-dir=DATA-DIR
c �: � | � ddd� d�� � d S )Nz--host-portFc �D � t j � | d�� � S �NT)�ipv6_enabled)r �HostPort�Parse)�args �%lib/surface/emulators/pubsub/start.py�<lambda>zStart.Args.<locals>.<lambda>9 s � ��-�3�3�C�d�3�K�K� � zUThe host:port to which the emulator should be bound. The default value is [::1]:8085.)�required�type�help)�add_argument)�parsers r �Argsz
Start.Args4 s: � �
�����
K�
K�$� � %� %� %� %� %r c � � |j sBt j � t j t j � � d�� � |_ t
j |� � 5 }t j t
j
|� � |j � � t j |t j � � d d d � � d S # 1 swxY w Y d S r )
� host_portr r r r �GetHostPortr �PUBSUBr �WriteEnvYaml�GetEnv�data_dir�PrefixOutput)�self�args�pubsub_processs r �Runz Start.Run>