FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
docker-lambda/examples/ruby/lambda_function.rb at build-java8 · sdscgithub/docker-lambda · GitHub
sdscgithub
/
docker-lambda
Public
forked from
lambci/docker-lambda
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
docker-lambda
/
examples
/
ruby
/
lambda_function.rb
Copy path
More file actions
More file actions
Latest commit
History
History
History
17 lines (13 loc) · 435 Bytes
Breadcrumbs
docker-lambda
/
examples
/
ruby
/
lambda_function.rb
Copy path
File metadata and controls
17 lines (13 loc) · 435 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
require
'pp'
# docker run --rm -v "$PWD":/var/task lambci/lambda:ruby2.5 lambda_function.lambda_handler
def
lambda_handler
(
event
:
,
context
:
)
info
=
{
'event'
=>
event
,
'ENV'
=>
ENV
.
to_hash
,
'context'
=>
context
.
instance_variables
.
each_with_object
(
{
}
)
{
|
k
,
h
|
h
[
k
]
=
context
.
instance_variable_get
k
}
,
'ps aux'
=>
`ps aux`
,
'proc environ'
=>
`xargs -n 1 -0 < /proc/1/environ`
,
}
pp
info
return
info
end
Back
|
FazBrowse Home
|
New Git URL