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: 4a902cc5c063c18f63a08b2056e43506a47cb64f8593680e786f7e88e664a1a7
4
- data.tar.gz: 6e7c034d355b2cafb512eb26dd836d0edf365e9479752bb8493eafb8f439f960
3
+ metadata.gz: 8fd059415a17d9534e3ab85a15f4d42c7f270e12bbf50b3cbf8e1e9d16313b7a
4
+ data.tar.gz: 64b7c124929f4885e36e0147c98e04cb08a60917688d5e89ee60043c0068698b
5
5
  SHA512:
6
- metadata.gz: bee8f1c703ee073991cc6e76fc0c6adad7bf29741a5e5f03a3bfd746406411f610f96b41babfaa225c0d8f79142c242537c21261a09d945e23f40cc2572693a1
7
- data.tar.gz: 82655a99afa618aace195acf08636ecfdd80050cc0763a0bf67771636dbed3c44377554d367753e8f7dc4c645fe6045da95c70eb51f214c95b38a3f4f1caea60
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: 'Event',
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(function_name: function_name, payload: payload)
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)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module WolfCore
4
- VERSION = "0.1.37"
4
+ VERSION = "0.1.38"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wolf_core
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.37
4
+ version: 0.1.38
5
5
  platform: ruby
6
6
  authors:
7
7
  - Javier Roncallo