Daniel Schep
b32b200b14
Merge pull request #5718 from Biteable/make-local-ruby-pry-work
...
Make local ruby pry work
2019-02-08 10:00:48 -05:00
Jon Burgess
801278039c
Ensure we don't break ruby local invocation on linux
2019-02-08 09:11:47 +11:00
Daniel Schep
9b716b4be0
lint
2019-02-05 13:16:32 -05:00
Daniel Schep
931caf866d
set timout&others on context in python invoke local
...
closes #5792
2019-02-05 13:02:39 -05:00
Daniel Schep
f54081216c
don't check call tty on macs
2019-01-28 11:41:58 -05:00
Jon Burgess
f490cb5458
Revert "Don't add newlines to echoed input"
...
This reverts commit e30e24222bd9cd584e127d8cd9ea85386c614857.
This breaks a couple of tests which are depending on:
serverless.cli.consoleLog.lastCall.args[0]
being set.
Also, it introduces an inconsistency c.f. invokeLocalPython et al.
I think here, consistency and passing tests trumps the slight annoyance of each input charact appearing on a new line. At least, for the moment and until a better way is found.
2019-01-23 09:31:40 +11:00
Jon Burgess
3bfc724fb3
Ensure tty device exists before trying to open it
2019-01-23 09:17:03 +11:00
Philipp Muens
89d037c468
Merge pull request #5662 from jetbridge/master
...
Provide AWS_PROFILE from configuration for invoke local
2019-01-22 13:12:29 +01:00
Philipp Muens
da83822905
Fix and update tests
2019-01-22 13:01:24 +01:00
Jon Burgess
e30e24222b
Don't add newlines to echoed input
...
Prior to this, debug output would look something like the following:
```
[1] pry(Kernel)>
f
o
o
=
"
f
o
o
"
=> "foo"
[2] pry(Kernel)>
```
i.e. there's a newline being added after each character is entered, making things somewhat difficult to read.
2019-01-18 11:56:30 +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
Mischa Spiegelmock
b563fb218e
attempting to create a test for invoke local with profile
2019-01-16 15:58:30 +02:00
Daniel Schep
c0a48b1ef7
remove use of Object.entries & String.includes & Array.includes
2019-01-16 07:32:07 -05:00
Mischa Spiegelmock
7004831dd4
provide AWS_PROFILE from configuration for invoke local - same as region
2019-01-08 13:45:12 +02:00
Daniel Schep
fb1069ff4b
update jackson-databind to secure version
2019-01-07 09:04:26 -05:00
Takahiro Horike
b7936defe0
Merge pull request #5378 from medikoo/fix-error-output
...
Fix error log output
2018-12-31 15:48:09 +09:00
Daniel Schep
fa4ef1159a
Merge pull request #5565 from serverless/sls-5563
...
set env vars from --env last in invoke local
2018-12-05 14:43:36 -05:00
Daniel Schep
6d7447c92e
use require("./#{handler_path}") instead of changing $LOAD_PATH
2018-12-05 13:13:18 -05:00
Daniel Schep
7a1f4ece8e
fix tests for invoke lcal env vars fix
2018-12-05 11:21:42 -05:00
Daniel Schep
44a6ac1a10
set env vars from --env last in invoke local
...
fixes #5563
2018-12-05 09:43:24 -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
Daniel Schep
42e0cf4dff
test invoke local support for returning value directly and fix it
2018-11-27 11:35:18 -05:00
Daniel Schep
5ffd7f4ae8
Fix invoke local when using callback in nodejs
2018-11-27 09:52:50 -05:00
Sean O'Hollaren
45683ad808
Fix bug where code attempted to parse data / context objects when they were not supplied
2018-11-21 12:16:43 -08:00
Daniel Schep
b76bb189b1
Python3.7 support!!!
...
AWS now supports Python3.7 in Lambda!
https://aws.amazon.com/blogs/compute/python-3-7-runtime-now-available-in-aws-lambda/
2018-11-19 16:22:35 -05:00
Daniel Schep
dd43b852bc
Don't use py3.5+ only subprocess.run in python invoke local
...
Fixes #5499
2018-11-16 15:35:45 -05:00
Daniel Schep
4578245d54
Merge pull request #5210 from serverless/pythonxy
...
Use pythonX instead of pythonX.Y in invoke local(take 3)
2018-11-02 07:27:12 -04:00
Travis Webb
e98100de91
Merge branch '5354-fix' of github.com:cloudreach/serverless into 5354-fix
2018-10-22 14:31:26 -07:00
Travis Webb
56ebcc4c4e
Merge branch 'master' of github.com:cloudreach/serverless into 5354-fix
2018-10-22 14:30:20 -07:00
Travis Webb
0cc2425e98
remove extraneous log statement
2018-10-22 14:29:50 -07:00
Mariusz Nowak
c1173e2e31
Cover handler crash error reporting with test
2018-10-18 17:27:28 +02:00
horike37
3d669b3eb2
Merge remote-tracking branch 'root/master' into 5354-fix
2018-10-14 15:11:12 +09:00
aki-webii
0e6423cbc6
fix: Implement context.log function for invoke local command on Python environment.
2018-10-13 14:00:02 +09:00
Mariusz Nowak
5fa15e130e
Fix logging of local invoke error
2018-10-11 16:42:03 +02:00
Mariusz Nowak
9b003ec379
Remove invalid log
2018-10-11 15:26:02 +02:00
Travis Webb
19e777ba99
quiet stderr tty output
2018-10-04 16:25:28 -04:00
Travis Webb
61865db2cc
quiet tty command output
2018-10-04 16:24:50 -04:00
Travis Webb
de4e6d82a3
update python invokeLocal to detect tty
2018-10-04 15:17:48 -04:00
softprops
fdac9df145
generate a dynamic date
2018-09-18 21:02:14 -04:00
softprops
c06ae9ebea
more faithfully represent aws lambda python runtime context
2018-09-12 01:09:12 -04:00
horike37
f353efcfae
Use pythonX instead of pythonX.Y in invoke local
2018-08-13 22:56:48 +09:00
bhaskarbalusani
c961dee9ab
Update index.js
2018-08-06 14:22:22 +05:30
bhaskarbalusani
a1876717a3
Update index.js
2018-08-06 13:17:39 +05:30
bhaskarbalusani
e599f57178
Update index.js
2018-08-03 15:45:28 +05:30
Lewis Chung
0a9006927b
Fix test failure on Node 4 by not using spread
2018-07-01 13:41:30 -07:00
Lewis Chung
e48f1dada5
fix lint
2018-05-30 11:34:42 -07:00
Lewis Chung
15e506196f
Fix test cases for callback + context.done
2018-05-30 11:32:56 -07:00
Lewis Chung
48a249500b
Add more test cases
2018-05-29 16:51:47 -07:00
Lewis Chung
9acef76ea0
Address callback being called in async function and error being returned
2018-05-29 16:42:39 -07:00