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" end
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.