_includes/code/manifest-for-helloRuby-2.yaml (11 lines of code) (raw):
packages:
default:
actions:
hello_ruby:
code: |
def main(params = {})
name = params["name"] || "stranger"
greeting = "Hello #{name}!"
{ "greeting": greeting }
end
runtime: ruby:2.5