wolf_core 0.1.18 → 0.1.19
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: a8d785615c5fa7343c041f85cd0bec684b52b244437e7671aafabe23b69bf2e7
|
4
|
+
data.tar.gz: 25eb82ff8cd06ec0b3f7c3790c001ce729947f331b0efbd2875d6d061ff06c55
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9065f29a4dab595510a105c8f3685d929a7698069594d197341b311c980c98abba12d2b9adc8b2f54f0b779ebe591ec12ae0bf72552d558b41ae99ac1981525e
|
7
|
+
data.tar.gz: 43147cb03ed97383467f552f0dfb0a7331495c26891405c499ea2c2dec8bc75e98b5c63d188149834c0957d61272199bc14dec6da8f4088119b3b78b85fe5078
|
@@ -3,18 +3,13 @@ module WolfCore
|
|
3
3
|
module_function
|
4
4
|
|
5
5
|
def init
|
6
|
-
endpoint = ENV.fetch('AWS_LAMBDA_FUNCTION_ENDPOINT', nil)
|
7
6
|
client_config = {
|
8
7
|
access_key_id: ENV.fetch('AWS_KEY_ID', nil),
|
9
8
|
secret_access_key: ENV.fetch('AWS_SECRET_ACCESS_KEY', nil),
|
9
|
+
region: ENV.fetch('AWS_REGION', nil),
|
10
|
+
endpoint: ENV.fetch('AWS_LAMBDA_FUNCTION_ENDPOINT', nil),
|
10
11
|
}
|
11
12
|
|
12
|
-
if endpoint.present?
|
13
|
-
client_config[:endpoint] = endpoint
|
14
|
-
else
|
15
|
-
client_config[:region] = ENV.fetch('AWS_REGION', nil)
|
16
|
-
end
|
17
|
-
|
18
13
|
client_config = client_config.compact
|
19
14
|
return if client_config.empty?
|
20
15
|
|
data/lib/wolf_core/version.rb
CHANGED