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 +4 -4
- data/lib/cfn-model/model/cfn_model.rb +13 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1111e254f6f994ce40d2622c0e8e0d6214a6757c
|
4
|
+
data.tar.gz: fc58f51eb45b258728ee5af72f390af32916497c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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-
|
11
|
+
date: 2017-11-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: kwalify
|