cloud_former 0.7.2 → 0.7.3

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: d8f97598610a8459faa5a88707af5431a44f1b2c
4
- data.tar.gz: 02fe88e39891dd5d06279b14841847dcb73f0dca
3
+ metadata.gz: 9eaa1aa8414e490efdbed4abef4c11ee3a877091
4
+ data.tar.gz: ce548c6931a4c8451e9e913ceb88aad005fd5ed6
5
5
  SHA512:
6
- metadata.gz: 5784ce7010c198771ea400c4c5442e8490371aee6ded71540e9a9f9a49c03a013aea32ef36f201e1c4db8718c8dc107875d6dedab4fbd952c04fcc15945d5420
7
- data.tar.gz: 5d300778228dbdeeccf0da1876624fcf87f3bf91126b4f18897949f2157027284447dcae539a070c41cfceb5dd8009307bab724e2de4c2b93929d6dedb07bbf0
6
+ metadata.gz: 89ac3f0684790868282bc25495607ea9a83d7f6febb54f3419f4b673739bb8b42c18ddb5342a8e1147b56ef50277854cff49a12b4fcca151996caf047c94fa98
7
+ data.tar.gz: 2fe9854b92a738ce5de9f8401af1fb4f3f0b90ed6d1132506e6a02b2422e242c008771c465e68fdbc4d7409a353689c7e65061119d2fac6622a2a41654379c8b
@@ -14,7 +14,9 @@ module CloudFormer
14
14
  end
15
15
 
16
16
  def parameter(name)
17
- @parameters.find { |p| p.get_name == name }
17
+ param = @parameters.find { |p| p.get_name == name }
18
+ raise "Parameter #{name} not found" unless param
19
+ param
18
20
  end
19
21
 
20
22
  def add_resource(resource)
@@ -22,7 +24,9 @@ module CloudFormer
22
24
  end
23
25
 
24
26
  def resource(name)
25
- @resources.find { |r| r.get_name == name }
27
+ res = @resources.find { |r| r.get_name == name }
28
+ raise "Resource #{name} not found" unless res
29
+ res
26
30
  end
27
31
 
28
32
  def add_output(key, value)
@@ -34,7 +38,9 @@ module CloudFormer
34
38
  end
35
39
 
36
40
  def condition(name)
37
- @conditions.find { |c| c.get_name == name }
41
+ cond = @conditions.find { |c| c.get_name == name }
42
+ raise "Condition #{name} not found" unless cond
43
+ cond
38
44
  end
39
45
 
40
46
  def add_mapping(name, hash)
@@ -1,3 +1,3 @@
1
1
  module CloudFormer
2
- VERSION = '0.7.2'
2
+ VERSION = '0.7.3'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cloud_former
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.2
4
+ version: 0.7.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aubrey Holland