wolf_core 0.1.37 → 0.1.38
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8fd059415a17d9534e3ab85a15f4d42c7f270e12bbf50b3cbf8e1e9d16313b7a
|
4
|
+
data.tar.gz: 64b7c124929f4885e36e0147c98e04cb08a60917688d5e89ee60043c0068698b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a416bcf0410932c54f59b124e2402c5cf0f8a908adc984b41c81cede5a3d3af879ce3fb4e1dc7ed9412c7b9d4eb8bfa4badc2bdae2ea164f20e348d5f8cfa83d
|
7
|
+
data.tar.gz: 2de6fb2a476dd6568fdde3a4db1ae6ddaab37297bcb847e51764d4f499facc5761052b388d7df4cd00fb4d4750c9b0a649ae73d89abb1598f1a9b340207e4fe3
|
@@ -20,11 +20,12 @@ module WolfCore
|
|
20
20
|
@@client
|
21
21
|
end
|
22
22
|
|
23
|
-
def invoke(function_name:, payload:)
|
23
|
+
def invoke(function_name:, payload:, invocation_type: nil)
|
24
24
|
parsed_payload = JSON.generate(payload)
|
25
|
+
invocation_type ||= 'Event'
|
25
26
|
@@client.invoke({
|
26
27
|
function_name: function_name,
|
27
|
-
invocation_type:
|
28
|
+
invocation_type: invocation_type,
|
28
29
|
log_type: 'Tail',
|
29
30
|
payload: parsed_payload
|
30
31
|
})
|
@@ -1,7 +1,9 @@
|
|
1
1
|
module WolfCore
|
2
2
|
module LambdaFunctionOperations
|
3
|
-
def invoke_lambda(function_name:, payload:)
|
4
|
-
WolfCore::LambdaFunctionDataSource.invoke(
|
3
|
+
def invoke_lambda(function_name:, payload:, invocation_type: nil)
|
4
|
+
WolfCore::LambdaFunctionDataSource.invoke(
|
5
|
+
function_name: function_name, payload: payload, invocation_type: invocation_type
|
6
|
+
)
|
5
7
|
end
|
6
8
|
|
7
9
|
def get_event_params(event)
|
data/lib/wolf_core/version.rb
CHANGED