Jets supports writing AWS Lambda functions with Ruby. You define them in the app/functions folder. A function looks like this:


def handle(event, context)
  puts "hello world"

The form above is what AWS Lambda Ruby support would probably look like. The default handler is named handle. The lambda function shows up in the Lambda console like this:

You can run the function in the AWS Lambda console and see the results:

Here’s an article that covers a simple Jets Ruby function: Jets Simple AWS Lambda Ruby Function.

Though simple functions are supported by Jets, aside from the ability to use Ruby it does not really add much value. Other classes like Controllers and Jobs add many conveniences and are more powerful to use. We’ll cover them next.

Pro tip: Use the <- and -> arrow keys to move back and forward.

Edit this page

See a typo or an error? You can improve this page. This website is available on GitHub and contributions are encouraged and welcomed. We love pull requests from you!