What's New

IBM Cloud Functions Adds Support for Ruby 2.5

Share this post:

What’s happening with IBM Cloud Functions and Ruby?

Are you eager to jump into the new and modern way of building event-driven solutions? Is Ruby your go-to programming language? Excellent! IBM Cloud Functions is welcoming Ruby 2.5 as a natively supported programming language. Now, you can join the Serverless revolution and start building cloud-native apps without worrying about scaling or infrastructure management by using Function-as-a-Service.

What does it look like?

A simple action would look like the following example:

def main(param)
name = param["name"] || "IBM Cloud"
greeting = "Hello #{name}!"
puts greeting
{ "body" => greeting }
end

How do I get started?

Ready to give it a go? Try deploying this example action by using the IBM Cloud CLI or dashboard.

To create a web action with the IBM Cloud Functions CLI plugin, you would run the following command:

ibmcloud fn action create helloRuby hello.rb --kind ruby:2.5 --web true

To get the URL for the web action and open it in your browser, run the following command:

ibmcloud fn action get helloRuby --url

How do I learn more?

You can find specific information about creating actions in the IBM Cloud Functions docs. To go further, you can check out this blog: Ruby goes Serverless! – Apache OpenWhisk adds native support for Ruby

Senior Technical Staff Member (STSM) - IBM Cloud Functions

More What's New stories
November 8, 2018

Introducing More Flexibility and Control for IBM Cloud Account Management Services Access

IBM Cloud is excited to announce more flexibility and control for account management services like billing, user management, and global catalog. This update means that key account management functions can now be granted to other users in your account with IBM Cloud Identity and Access Management policies.

Continue reading

November 5, 2018

Announcing IBM Cloud Data Shield Experimental – Scalable Data-in-Use Protection for Your Container Workloads

Data Shield, powered by Fortanix, provides data-in-use protection for your container workloads running on the IBM Cloud Kubernetes Service. It leverages Intel® SGX technology to run code and data in CPU-hardened “enclaves” or a Trusted Execution Environment (TEE).

Continue reading

November 5, 2018

Data-in-Use Protection on IBM Cloud Kubernetes Service Using Intel® SGX

We are excited to announce Intel® Software Guard Extensions (Intel® SGX) bare metal worker nodes for IBM Cloud Kubernetes Service to help address data protection concerns with containers and microservices.

Continue reading