This example demonstrates how to setup a simple Ruby HTTP GET endpoint.
- Wrapping an existing internal or external endpoint/service
The GCF Ruby environment has the following requirements:
- The code to be invoked must be defined in the
app.rb
file usingFunctionsFramework
- Any dependencies must be specified in the
Gemfile
https://cloud.google.com/functions/docs/concepts/ruby-runtime https://github.com/GoogleCloudPlatform/functions-framework-ruby
Run the following to deploy:
serverless deploy