wolf_core 1.0.42 → 1.0.43
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: 8ac2212414b5e57e81011fa3ed1b572a02c2013c6788a07e4e61f37ada2cdeab
|
4
|
+
data.tar.gz: 301956acbb30a3672b7331847a5ea16fb15ddea44fbabc47b1429c0a83d38534
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 403c03273d71df0ffe1d8f11768173c13a38235e145bc8992fc76d2f51954ee3b10c2411b8f84569669466d9249ebdedf8a855f0b7ccb1b8470cdb00beaeed3f
|
7
|
+
data.tar.gz: b6b96e0de0843a920308af7bba70a96e2eb5a163b23198d4cf2d5a2251b4e5d0c56628fdfe37908310e0f95937cff30443d1367f99ff940e7c88199df2dad370
|
@@ -5,11 +5,21 @@ module WolfCore
|
|
5
5
|
include WolfCore::LambdaFunctionOperations
|
6
6
|
include WolfCore::ExceptionOperations
|
7
7
|
|
8
|
+
PATH_TO_FUNCTION_NAME_MAPPING = {
|
9
|
+
'burnett/jobseekers/export' => 'BurnettExportJobseeker',
|
10
|
+
'burnett/jobseekers/import' => 'BurnettImportJobseeker',
|
11
|
+
'burnett/orders/export' => 'BurnettExportOrder',
|
12
|
+
'burnett/order_applications/export' => 'BurnettExportOrderApplication',
|
13
|
+
'burnett/clients/import' => 'BurnettImportClient',
|
14
|
+
'burnett/clients/bulk_import' => 'BurnettBulkImportClients',
|
15
|
+
'burnett/clients/export' => 'BurnettExportClient',
|
16
|
+
}
|
17
|
+
|
8
18
|
def route_event_request(path:, body:)
|
9
|
-
environment = ENV['ENVIRONMENT']
|
19
|
+
environment = ENV['ENVIRONMENT'] || 'development'
|
10
20
|
deployable_envs = ['production', 'staging', 'testing']
|
11
|
-
if deployable_envs.include?(environment)
|
12
|
-
function_name = PATH_TO_FUNCTION_NAME_MAPPING[path]
|
21
|
+
if deployable_envs.include?(environment.downcase)
|
22
|
+
function_name = "#{PATH_TO_FUNCTION_NAME_MAPPING[path]}#{environment.titleize}"
|
13
23
|
raise_service_error("Function name not found for path: #{path}") if function_name.blank?
|
14
24
|
|
15
25
|
invoke_lambda(
|
data/lib/wolf_core/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: wolf_core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.43
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Javier Roncallo
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-11-
|
11
|
+
date: 2024-11-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|