cloud_former 0.7.3 → 0.7.4

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: 9eaa1aa8414e490efdbed4abef4c11ee3a877091
4
- data.tar.gz: ce548c6931a4c8451e9e913ceb88aad005fd5ed6
3
+ metadata.gz: 5d59fe087a2719d2b7afb963a44eebc512aa31b7
4
+ data.tar.gz: 265456b782e59fb178bda391b22aedb4b869c0fe
5
5
  SHA512:
6
- metadata.gz: 89ac3f0684790868282bc25495607ea9a83d7f6febb54f3419f4b673739bb8b42c18ddb5342a8e1147b56ef50277854cff49a12b4fcca151996caf047c94fa98
7
- data.tar.gz: 2fe9854b92a738ce5de9f8401af1fb4f3f0b90ed6d1132506e6a02b2422e242c008771c465e68fdbc4d7409a353689c7e65061119d2fac6622a2a41654379c8b
6
+ metadata.gz: d97778d43d3de11b56bb52c83b74f7d7b10aa44410f4fbfb3bb598935a563b72cae42f6f915cc239125dbab805d307c143de77e807e4c86001625538de27e2f4
7
+ data.tar.gz: 08ff0257afaea1abae5c6f9d1cab8c73367ebb40a75db30d1503524d99b24194749a526002a364e953ebde284df18d9dde8b03eff9e2f7a2ba5672c4736b53d8
@@ -10,6 +10,7 @@ module CloudFormer
10
10
  end
11
11
 
12
12
  def add_parameter(parameter)
13
+ raise "Overwriting parameter with name #{parameter.get_name}" if @parameters.any? { |p| p.get_name == parameter.get_name }
13
14
  @parameters << parameter
14
15
  end
15
16
 
@@ -20,6 +21,7 @@ module CloudFormer
20
21
  end
21
22
 
22
23
  def add_resource(resource)
24
+ raise "Overwriting resource with name #{resource.get_name}" if @resources.any? { |r| r.get_name == resource.get_name }
23
25
  @resources << resource
24
26
  end
25
27
 
@@ -34,6 +36,7 @@ module CloudFormer
34
36
  end
35
37
 
36
38
  def add_condition(condition)
39
+ raise "Overwriting condition with name #{condition.get_name}" if @conditions.any? { |c| c.get_name == condition.get_name }
37
40
  @conditions << condition
38
41
  end
39
42
 
@@ -1,3 +1,3 @@
1
1
  module CloudFormer
2
- VERSION = '0.7.3'
2
+ VERSION = '0.7.4'
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.3
4
+ version: 0.7.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aubrey Holland