cloudformation-tool 0.7.0 → 0.7.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: da07cd386a792f6dee84862962bd5f3bcd9e243a
4
- data.tar.gz: d46054b28aa9bbfba9e9f88d22bd93a6b2caeb06
3
+ metadata.gz: 27017369118ae8d9ab43d867ec66ac1a73a37c2c
4
+ data.tar.gz: f36ea6fb5a8822bef100f5ee035cf5724da7052c
5
5
  SHA512:
6
- metadata.gz: 817e208ec95ef44733bac7ec1d5967d9df51ceadde2b9f8317a4720d759fc4d0dced12e7e133816b2c8896664b7b8f1bf2ddbceb59c60e00dc5f92169c55ab28
7
- data.tar.gz: 560890e77e1060c1fa234c633699566ee2885e143f833abd4409d89ea6216352b4f33f6dfae9333b74eb94dfdf8d9f131b9d0e052f33d957780b2fb7343963e3
6
+ metadata.gz: 1b96a4796add1c784474ff7dd4cb31eb2b2fa2504d6547a56837fda56142cf195b112696cb41e898a8a62db06be8ef5b839080edb176b73882acb5c3f6f0645c
7
+ data.tar.gz: 6bfefbe91458339ab162a5ccbe8847310e1acd00e591c582c464d0f8124983b0cee7536c287976cdaea9275bb892e3a3fa9a067b33f4174846972e013d7f2bbd
@@ -133,7 +133,7 @@ module CloudFormationTool
133
133
  # a parent template has what it takes to resolve the ref
134
134
  value
135
135
  else # parameters are set for this template - we can try to resolve
136
- res = @params[value['Ref']] || (@data['Parameters']||{})[value['Ref']]
136
+ res = @params[value['Ref']] || ((@data['Parameters']||{})[value['Ref']] || {})['Default']
137
137
  if res.nil?
138
138
  raise CloudFormationTool::Errors::AppError, "Reference #{value['Ref']} can't be resolved"
139
139
  end
@@ -162,6 +162,7 @@ module CloudFormationTool
162
162
  elsif (key == "Code") and (val["URL"])
163
163
  # Support Lambda Code from arbitrary URLs
164
164
  url = resolveVal(val["URL"])
165
+ log "Resolving lambda code URL: #{url}"
165
166
  if url.is_a? String # resolving works
166
167
  LambdaCode.new(url: url).to_cloudformation
167
168
  else # resolving didn't work - we probably don't have parameters
@@ -175,7 +176,7 @@ module CloudFormationTool
175
176
  else # resolving didn't work - we probably don't have parameters
176
177
  val
177
178
  end
178
- else
179
+ else
179
180
  load_files(val)
180
181
  end
181
182
  dict
@@ -49,7 +49,7 @@ module CloudFormationTool
49
49
  when Net::HTTPRedirection then
50
50
  location = response['location']
51
51
  log "redirected to #{location}"
52
- fetch(location, limit - 1)
52
+ fetch_from_url(location, limit - 1)
53
53
  else
54
54
  raise CloudFormationTool::Errors::AppError, "Error downloading #{url}: #{response.value}"
55
55
  end
@@ -1,3 +1,3 @@
1
1
  module CloudFormationTool
2
- VERSION = '0.7.0'
2
+ VERSION = '0.7.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cloudformation-tool
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.7.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Oded Arbel