cfn-model 0.0.3 → 0.0.4
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/parser/cfn_parser.rb +3 -3
- 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: 451716e29e7e206640c634316e54d9e125a8621b
|
4
|
+
data.tar.gz: b563f6974c0f6dc5875749d9cd05b7cbccce931a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5e3570273abb584a20fdb65bac3a589fdc0b96bab3ffccf2102f3a1811ffe5bdebd2dc2381d268d3f23deeaeb8c05f58b35360e8874b8b2b190489280dff874f
|
7
|
+
data.tar.gz: dd7756be55aecf0313cd1472b24aa1c6b89778d5d02c0bf7aafdc00b15d63a02ea0218c6d32068fac68651fbe75ebc8b846777b6ea5d75a69bbe1a5dac6ca3e8
|
@@ -82,7 +82,7 @@ class CfnParser
|
|
82
82
|
def assign_fields_based_upon_properties(resource_object, resource)
|
83
83
|
unless resource['Properties'].nil?
|
84
84
|
resource['Properties'].each do |property_name, property_value|
|
85
|
-
resource_object.send("#{
|
85
|
+
resource_object.send("#{initial_lower(property_name)}=", property_value)
|
86
86
|
end
|
87
87
|
end
|
88
88
|
end
|
@@ -91,7 +91,7 @@ class CfnParser
|
|
91
91
|
begin
|
92
92
|
resource_class = Object.const_get type_name, inherit=false
|
93
93
|
rescue NameError
|
94
|
-
puts "Never seen class: #{type_name} so going dynamic"
|
94
|
+
# puts "Never seen class: #{type_name} so going dynamic"
|
95
95
|
resource_class = Class.new(DynamicModelElement)
|
96
96
|
|
97
97
|
begin
|
@@ -106,7 +106,7 @@ class CfnParser
|
|
106
106
|
resource_class
|
107
107
|
end
|
108
108
|
|
109
|
-
def
|
109
|
+
def initial_lower(str)
|
110
110
|
str.slice(0).downcase + str[1..(str.length)]
|
111
111
|
end
|
112
112
|
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.0.
|
4
|
+
version: 0.0.4
|
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-07-
|
11
|
+
date: 2017-07-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: kwalify
|