November 7, 2018 By Carlos Santana < 1 min read

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

More from Announcements

Success and recognition of IBM offerings in G2 Summer Reports  

2 min read - IBM offerings were featured in over 1,365 unique G2 reports, earning over 230 Leader badges across various categories.   This recognition is important to showcase our leading products and also to provide the unbiased validation our buyers seek. According to the 2024 G2 Software Buyer Behavior Report, “When researching software, buyers are most likely to trust information from people with similar roles and challenges, and they value transparency above other factors.”  With over 90 million visitors each year and hosting more than 2.6…

IBM named a Leader in Gartner Magic Quadrant for SIEM, for the 14th consecutive time

3 min read - Security operations is getting more complex and inefficient with too many tools, too much data and simply too much to do. According to a study done by IBM, SOC team members are only able to handle half of the alerts that they should be reviewing in a typical workday. This potentially leads to missing the important alerts that are critical to an organization's security. Thus, choosing the right SIEM solution can be transformative for security teams, helping them manage alerts…

IBM Consulting augments expertise with AWS Competencies: A win-win for clients 

3 min read - In today's dynamic economic landscape, businesses demand continuous innovation and speed of execution. At IBM Consulting®, our unwavering focus on partnerships and shared commitment to delivering enterprise-level solutions to mutual clients have been core to our success.   We are thrilled to announce that IBM® has recently gained five competencies from Amazon Web Services (AWS) in vital domains including Cloud Operations, Internet of Things (IoT), Life Sciences, Mainframe Modernization, and Telecommunications. With these credentials, IBM further establishes its position as a…

IBM Newsletters

Get our newsletters and topic updates that deliver the latest thought leadership and insights on emerging trends.
Subscribe now More newsletters