lib/bbc/cosmos/config/aws.rb in bbc-cosmos-config-0.3.0 vs lib/bbc/cosmos/config/aws.rb in bbc-cosmos-config-0.3.1
- old
+ new
@@ -17,26 +17,26 @@
def instance_id
@instance_id ||= BBC::Cosmos.production? ? aws_instance_id : "instance_id"
end
- private
-
def s3_config_location
tags['AppName']
end
def s3_config(config)
path = [
- config[:configuration][:config_path],
+ config[:configuration][:config_path],
config[:environment],
'config',
config[:configuration][:commit],
"#{s3_config_location}.json"
].join('/')
JSON.parse(@s3.buckets[config[:component_resources_bucket]].objects[path].read, :symbolize_names => true)
end
+
+ private
def instance
BBC::Cosmos.production? ? aws_instance : dummy_instance
end