bbc-cosmos-config 0.0.7 → 0.0.8

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
  SHA1:
3
- metadata.gz: 355ed319bc64cb9079d45178d0f65d3a19e18cf4
4
- data.tar.gz: 864acc84e87dbae6e9f38207d835aae1a50c8052
3
+ metadata.gz: 23fc0e9f48b9f6fc1c9e71f15ea97b6370a121e6
4
+ data.tar.gz: 1756c93db5cf3340d2e25a5dc70400f3508933ac
5
5
  SHA512:
6
- metadata.gz: 1c8cd3a9559f92db83e2e52f481bde15390ddf7431df4003a91e3784c471f421ea095af6f19bcae86ef112aab03fb4502e0f59b7dffdfaec2aef2f8b6ac5dfdf
7
- data.tar.gz: 6a6e2d8475c8cee7b4e9930d84ddc685c8b6583f22b187fdef599b7fab3f9d6202b9b2a07fc03866f1d8ff3cc34ec7c8d7a3d86c5f4a51cc9d0d130d4822fd02
6
+ metadata.gz: 58b3bdfe35fcd0df05d51c3a98e809a47548fa8c004b846980186f71544ca2315452d23c974efa3d562ad430665124370818c9984e13b90084944a7e70402d4a
7
+ data.tar.gz: 6255ef06716a97d1125ede221f2c847ddb26003453907281febc02d7f649bca6cdf631a9bd55201a94173a47b29c7eb1ed3515aea45a964d0162f4c8a7f70d46
@@ -40,7 +40,8 @@ module BBC
40
40
  def dummy_instance
41
41
  Struct.new(:tags).new({
42
42
  "aws:cloudformation:stack-name" => "stack_name",
43
- "Component" => "component_name"
43
+ "Component" => "component_name",
44
+ "AppName" => "app_name"
44
45
  })
45
46
  end
46
47
 
@@ -14,6 +14,10 @@ module BBC
14
14
  @aws_config.tags["aws:cloudformation:stack-name"]
15
15
  end
16
16
 
17
+ def app_name
18
+ @aws_config.tags["AppName"]
19
+ end
20
+
17
21
  def component_name
18
22
  @aws_config.tags["Component"].downcase
19
23
  end
@@ -1,7 +1,7 @@
1
1
  module BBC
2
2
  module Cosmos
3
3
  module Config
4
- VERSION = "0.0.7"
4
+ VERSION = "0.0.8"
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bbc-cosmos-config
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Robert Kenny
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-05-14 00:00:00.000000000 Z
11
+ date: 2014-05-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk