sfn 3.0.14 → 3.0.16
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/sfn/command/lint.rb +3 -3
- data/lib/sfn/command_module/template.rb +2 -2
- data/lib/sfn/version.rb +1 -1
- 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: d8a619bd6ea2b1d0125319a37663fb483ea8c55a
|
4
|
+
data.tar.gz: b9fc234a4a06d97b53c8601dc1f03afed3e6af59
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 26587c0aca21c8d22eb6a991595cbd66254f8e199b1e6e66bf7f216e96df3e96385f8bfaa048d1c1e796100db5e37c66093f1320682fd32f13bd160889b4b776
|
7
|
+
data.tar.gz: 6006bf1083b91c355d384eb83df5e6b02930f58fdc7bd155a56a9facdb59a62d6b1e19e992cdb328ae630f050b28b9aa48a0cd98f85a866730e57476b34226bf
|
data/CHANGELOG.md
CHANGED
data/lib/sfn/command/lint.rb
CHANGED
@@ -23,13 +23,13 @@ module Sfn
|
|
23
23
|
else
|
24
24
|
result = lint_template(raw_template)
|
25
25
|
if(result == true)
|
26
|
-
ui.
|
26
|
+
ui.info ui.color(' -> VALID', :green, :bold)
|
27
27
|
else
|
28
|
-
ui.
|
28
|
+
ui.info ui.color(' -> INVALID', :red, :bold)
|
29
29
|
result.each do |failure|
|
30
30
|
ui.error "Result Set: #{ui.color(failure[:rule_set].name, :red, :bold)}"
|
31
31
|
failure[:failures].each do |f_msg|
|
32
|
-
ui.
|
32
|
+
ui.fatal f_msg
|
33
33
|
end
|
34
34
|
end
|
35
35
|
raise 'Linting failure'
|
@@ -277,7 +277,7 @@ module Sfn
|
|
277
277
|
file = bucket.files.build
|
278
278
|
file.name = "#{name_args.first}_#{stack_name}.json"
|
279
279
|
file.content_type = 'text/json'
|
280
|
-
file.body = MultiJson.dump(
|
280
|
+
file.body = MultiJson.dump(parameter_scrub!(stack_definition))
|
281
281
|
file.save
|
282
282
|
url = URI.parse(file.url)
|
283
283
|
template_url = "#{url.scheme}://#{url.host}#{url.path}"
|
@@ -391,7 +391,7 @@ module Sfn
|
|
391
391
|
# @param template [Hash]
|
392
392
|
# @return [Hash]
|
393
393
|
def scrub_template(template)
|
394
|
-
template =
|
394
|
+
template = parameter_scrub!(template)
|
395
395
|
(template['Resources'] || {}).each do |r_name, r_content|
|
396
396
|
if(valid_stack_types.include?(r_content['Type']))
|
397
397
|
result = (r_content['Properties'] || {}).delete('Stack')
|
data/lib/sfn/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sfn
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.16
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chris Roberts
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-06-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bogo-cli
|