serverless_hub 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/serverless_hub/handler.rb +6 -7
- data/lib/serverless_hub/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f2d256e0477a8ec7b966e1057b05c3d4b2c12b8c405e7284420b94fde6fe51d5
|
4
|
+
data.tar.gz: e0a0a9b57b416c23248b0e5572301088e96945c19927ced3754c39ec0908a51d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 93b220cf765f619aaeb2a248533fe24ce332593434e29b5048d8d0940c1576a2779e2a97d647da1c7b7e86f9ef4f1796d7da70b82a6a12945dcb5b880e64fd17
|
7
|
+
data.tar.gz: 9945dc2b0334db89b04ebbb930a82ee440a7dded791f3dbdf1bc719a764ca86b3b9b3cb38af7a0e56a8671da440f13a128a127a45fbc10e787bdf2f66ea810af
|
@@ -14,13 +14,12 @@ module ServerlessHub
|
|
14
14
|
return "Warm Up" if event["source"] == "serverless-plugin-warmup"
|
15
15
|
|
16
16
|
Lamby.handler $app, event, context
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
end
|
17
|
+
rescue Exception => msg
|
18
|
+
p "errors: #{msg}"
|
19
|
+
response = {
|
20
|
+
"statusCode" => 500,
|
21
|
+
"body" => msg,
|
22
|
+
}
|
24
23
|
end
|
25
24
|
end
|
26
25
|
end
|