cfn-model 0.1.9 → 0.1.10

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: d740c2a56f0d78f4dc8e2709e50070e9d9658aa1
4
- data.tar.gz: f33f78137107e6de647e4e2cb8ff1bfb3f937ada
3
+ metadata.gz: 1111e254f6f994ce40d2622c0e8e0d6214a6757c
4
+ data.tar.gz: fc58f51eb45b258728ee5af72f390af32916497c
5
5
  SHA512:
6
- metadata.gz: 2c4e051da7cc02a539ff4d73a6ebb7cb4b4ceaa3273ef2379e46a79373f92274ca3b48d9f80241eb5adec9a66c75ed137e46754722cd9b16175093a16767ed6f
7
- data.tar.gz: df0f8b5b9d36e46249efb067f9fb22146f1a859bebc44df1cbe673b6d97b792e4f45f656bec8898cc17923b658612e234cf83467f554cd7acd8b6ccd75d12bf6
6
+ metadata.gz: 3a5f073653331a451edf9d2fbc2315a060340827be6aeeff2e2f4ff9c199bc43b3b67a6c1471122631c640b0e4482cc0a26174062aeaae5a8b43f82fcc191809
7
+ data.tar.gz: 4b3b423503fdb17ef17bb860526a74f748ba1b9e05b4da6a15642292225a4e62508778efe785a2e98685834f215de4d9dbc64a654c013a28df1dbd0b7db5d515
@@ -14,6 +14,19 @@ class CfnModel
14
14
  @raw_model = nil
15
15
  end
16
16
 
17
+ ##
18
+ # A new instance of CfnModel with a copy of the raw_model and
19
+ # and resources. The resource objects themselves aren't cloned but
20
+ # the Hash is a clone
21
+ def copy
22
+ new_cfn_model = CfnModel.new
23
+ @resources.each do |k, v|
24
+ new_cfn_model.resources[k] = v
25
+ end
26
+ new_cfn_model.raw_model = @raw_model.dup unless @raw_model.nil?
27
+ new_cfn_model
28
+ end
29
+
17
30
  def security_groups
18
31
  resources_by_type 'AWS::EC2::SecurityGroup'
19
32
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cfn-model
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.9
4
+ version: 0.1.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric Kascic
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-11-15 00:00:00.000000000 Z
11
+ date: 2017-11-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: kwalify