bbc-cosmos-config 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/bbc/cosmos/config/aws.rb +3 -3
- data/lib/bbc/cosmos/config/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e2f01ee858d6123677c9db43611a8d0b2d9064c2
|
4
|
+
data.tar.gz: efc1a741a67216254bd49c44beb01939c310788f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 693f8111742296ad675451f3355ffcb5b68357b2485ab1c7f6282cd5b6b682dc434e7d9358baa599fb67fb91da22ee2f6504a8afa17219c2946ee15d0c924eb4
|
7
|
+
data.tar.gz: d1be4a5f09196c5ee57be21a0d458964afe32778fbc7181a920815d19b9e95b99a30c155684dfb113011dd5a172f0b19d0e64ea645d4fc125e83631d42ef9185
|
@@ -19,15 +19,13 @@ module BBC
|
|
19
19
|
@instance_id ||= BBC::Cosmos.production? ? aws_instance_id : "instance_id"
|
20
20
|
end
|
21
21
|
|
22
|
-
private
|
23
|
-
|
24
22
|
def s3_config_location
|
25
23
|
tags['AppName']
|
26
24
|
end
|
27
25
|
|
28
26
|
def s3_config(config)
|
29
27
|
path = [
|
30
|
-
config[:configuration][:config_path],
|
28
|
+
config[:configuration][:config_path],
|
31
29
|
config[:environment],
|
32
30
|
'config',
|
33
31
|
config[:configuration][:commit],
|
@@ -37,6 +35,8 @@ module BBC
|
|
37
35
|
JSON.parse(@s3.buckets[config[:component_resources_bucket]].objects[path].read, :symbolize_names => true)
|
38
36
|
end
|
39
37
|
|
38
|
+
private
|
39
|
+
|
40
40
|
def instance
|
41
41
|
BBC::Cosmos.production? ? aws_instance : dummy_instance
|
42
42
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bbc-cosmos-config
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Robert Kenny
|
@@ -206,7 +206,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
206
206
|
version: '0'
|
207
207
|
requirements: []
|
208
208
|
rubyforge_project:
|
209
|
-
rubygems_version: 2.
|
209
|
+
rubygems_version: 2.0.3
|
210
210
|
signing_key:
|
211
211
|
specification_version: 4
|
212
212
|
summary: Config wrapper gem for Ruby apps running on Cosmos
|