cloud_former 0.5.9 → 0.5.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/cloud_former/functions/join.rb +1 -1
- data/lib/cloud_former/makes_json.rb +3 -3
- data/lib/cloud_former/metadata_resources/cloud_formation/authentication.rb +2 -2
- data/lib/cloud_former/property_or_attribute.rb +1 -1
- data/lib/cloud_former/template.rb +1 -1
- data/lib/cloud_former/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c32b32d6f7e10898ce833dce5a2a030e36a9f6f4
|
4
|
+
data.tar.gz: 4fbae83f686551378ff437243b25bcbd58a1361a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2ed44ea588522e291db7c037be420a15d92c7fa02b6d63990b859fdfe3f80ea727d95183e7b6bcf20dd1e1107ad07f0b5acdaaa2853adeb7d78023472ef40168
|
7
|
+
data.tar.gz: bc03f092c3351a86fe56cdc2daa647a41ec706d79cfa2dcc8e15b1e65b097ebb44587860d93af0f7e2fc83f2517b5fbebbe0b4c8bbe53b95808ad31a67853828
|
@@ -14,7 +14,7 @@ module CloudFormer
|
|
14
14
|
def dump_json
|
15
15
|
mapped_pieces = @pieces.map do |piece|
|
16
16
|
if piece.is_a?(Parameter) || piece.is_a?(PseudoParameter)
|
17
|
-
{ 'Ref' => piece.
|
17
|
+
{ 'Ref' => piece.get_name }
|
18
18
|
elsif piece.is_a?(Function)
|
19
19
|
piece.dump_json
|
20
20
|
elsif piece.is_a?(Resource)
|
@@ -10,7 +10,7 @@ module CloudFormer
|
|
10
10
|
base.class_variable_set('@@json_attributes', [])
|
11
11
|
base.class_variable_set('@@embed_properties', false)
|
12
12
|
end
|
13
|
-
|
13
|
+
|
14
14
|
def dump_json
|
15
15
|
res = {}
|
16
16
|
self.class.class_variable_get('@@json_attributes').each do |att|
|
@@ -24,7 +24,7 @@ module CloudFormer
|
|
24
24
|
val = property.as_json_for(self)
|
25
25
|
if !val.nil?
|
26
26
|
use_name = property.options[:name]
|
27
|
-
use_name ||= ActiveSupport::Inflector.camelize(property.
|
27
|
+
use_name ||= ActiveSupport::Inflector.camelize(property.get_name)
|
28
28
|
properties[use_name] = val
|
29
29
|
end
|
30
30
|
end
|
@@ -38,7 +38,7 @@ module CloudFormer
|
|
38
38
|
val = attribute.as_json_for(self)
|
39
39
|
if val
|
40
40
|
use_name = attribute.options[:name]
|
41
|
-
use_name ||= ActiveSupport::Inflector.camelize(attribute.
|
41
|
+
use_name ||= ActiveSupport::Inflector.camelize(attribute.get_name)
|
42
42
|
attribute_fill[use_name] = val
|
43
43
|
end
|
44
44
|
end
|
@@ -8,7 +8,7 @@ module CloudFormer
|
|
8
8
|
@aws_type = 'AWS::CloudFormation::Authentication'
|
9
9
|
end
|
10
10
|
|
11
|
-
def items(values=nil)
|
11
|
+
def items(values = nil)
|
12
12
|
if values
|
13
13
|
@authentication_items = values
|
14
14
|
end
|
@@ -18,7 +18,7 @@ module CloudFormer
|
|
18
18
|
def dump_json
|
19
19
|
res = {}
|
20
20
|
(@authentication_items || []).each do |item|
|
21
|
-
res[item.
|
21
|
+
res[item.get_name] = item.dump_json
|
22
22
|
end
|
23
23
|
res
|
24
24
|
end
|
data/lib/cloud_former/version.rb
CHANGED