6 Commits

Author SHA1 Message Date
Jon Burgess
801278039c Ensure we don't break ruby local invocation on linux 2019-02-08 09:11:47 +11:00
Jon Burgess
3bfc724fb3 Ensure tty device exists before trying to open it 2019-01-23 09:17:03 +11:00
Jon Burgess
1530af2025 Make local ruby debugging work
This follows a similar change for local python invocation at ad5decb080/lib/plugins/aws/invokeLocal/invoke.py (L76-L82)

A handler such as the following will now pause at the breakpoint:

```ruby
require 'json'
require 'pry'

def hello(event:, context:)
  binding.pry # breakpoint
  { statusCode: 200, body: JSON.generate('Go Serverless v1.0! Your function executed successfully!') }
end
```
2019-01-18 11:37:08 +11:00
Daniel Schep
6d7447c92e use require("./#{handler_path}") instead of changing $LOAD_PATH 2018-12-05 13:13:18 -05:00
Dean Holdren
99c4256461 support Ruby class method as handler 2018-12-04 16:28:14 -05:00
Dean Holdren
d147db90b0 ruby support for invokeLocal 2018-12-04 13:48:45 -05:00