ocean-rails 8.0.2 → 8.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ocean-rails.rb +3 -1
- data/lib/ocean/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: b2181b0250ab237fe08174165f32ad5bacd73ee8560f022fec1325e31a55a553
|
4
|
+
data.tar.gz: 958ab30c39b9e145306ca9d81745376151504d39ac079c9b76f56ed2a0a0e5da
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 21a7a8933924b844f53aabf6076322f2b77998d3939e832d9890b06ec6f0ad4f2b4c5e3eafedfebc1dd3a496f56e74220fa83f5930c65cbdacf76642bb4cf8ba
|
7
|
+
data.tar.gz: cc1a14177a35e31cd617538b95ea50ac44ed64a936840f19b96b8e24f777cad4d8551fa3fc2a915534611f52c07658a0369b01c5862d6b4e8aaee53236391838
|
data/lib/ocean-rails.rb
CHANGED
@@ -166,9 +166,11 @@ def aws_config(endpoint: nil, **keywords)
|
|
166
166
|
}.merge(keywords)
|
167
167
|
else
|
168
168
|
raise "AWS_REGION not defined" unless ENV['AWS_REGION'].present?
|
169
|
+
credential_handler = ENV['AWS_CONFIG_LOCAL_MODE'].present? ? Aws::InstanceProfileCredentials :
|
170
|
+
Aws::ECSCredentials
|
169
171
|
{
|
170
172
|
region: ENV['AWS_REGION'],
|
171
|
-
credentials:
|
173
|
+
credentials: credential_handler.new
|
172
174
|
}
|
173
175
|
end
|
174
176
|
end
|
data/lib/ocean/version.rb
CHANGED