-
Notifications
You must be signed in to change notification settings - Fork 535
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support PUBSUB_EMULATOR_HOST environment variable #491
Comments
PUBSUB_HOST
environment variable
I believe the correct variable should be |
See googleapis/google-cloud-node#1125 for the complete gcloud-node change for this variable name. |
@dlorenc Be aware that in our next release, the gcloud-ruby Pub/Sub client will be using gRPC instead of Rest. @hbchai commented that the Pub/Sub emulator also supports gRPC. (I haven't tested it yet.) |
Thanks for the update! |
Just an implementation note: Following the lead of gcloud-node, the gRPC connection to the emulator should be insecure (no credentials), as in this example: stub = Helloworld::Greeter::Stub.new('localhost:50051', :this_channel_is_insecure) |
Any updates here? |
If we get this implemented then we may want to put it in a point release before Dataset/GRPC, since we don't know when that will be ready to be released. |
Use the PUBSUB_EMULATOR_HOST environment variable to indicate the target service API is running an insecure emulator. Add documentation for installing the emulator, and for configuring gcloud-ruby to use the emulator. [closes googleapis#491]
gcloud-ruby should support the
PUBSUB_HOST
PUBSUB_EMULATOR_HOST
environment variable and connect to service specified in it. This will enable connecting to an emulator running locally, similar to how the Datastore emulator works.See GoogleCloudPlatform/gcloud-common#48
The text was updated successfully, but these errors were encountered: