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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d86015ce1785c5da228500177b6b6520a7157ff3
4
- data.tar.gz: 595dea3bfa80bac4cc4f351310309749fbe9a62e
3
+ metadata.gz: d8a619bd6ea2b1d0125319a37663fb483ea8c55a
4
+ data.tar.gz: b9fc234a4a06d97b53c8601dc1f03afed3e6af59
5
5
  SHA512:
6
- metadata.gz: 7c2fe1e37172359fddb155d4a9dd2a185de4534be1a9403bb348a6c0380301eb27a1e878c53855eea7815ce57cb4a93986fd52509b77de54d9ea5871c5adb667
7
- data.tar.gz: b418420b239d1944b300a645b9310e948c7f74310d31fafee687eacad0dfede58a54b1c9319efe6f1d458834a9127dbe16cc4cafb9e1693aa7a9414c1f8cc3bb
6
+ metadata.gz: 26587c0aca21c8d22eb6a991595cbd66254f8e199b1e6e66bf7f216e96df3e96385f8bfaa048d1c1e796100db5e37c66093f1320682fd32f13bd160889b4b776
7
+ data.tar.gz: 6006bf1083b91c355d384eb83df5e6b02930f58fdc7bd155a56a9facdb59a62d6b1e19e992cdb328ae630f050b28b9aa48a0cd98f85a866730e57476b34226bf
@@ -1,3 +1,7 @@
1
+ # v3.0.16
2
+ * [enhancement] Update output format of lint command(#212)
3
+ * [fix] Fix parameter scrub to use instance method
4
+
1
5
  # v3.0.14
2
6
  * [fix] Compile time parameter merging (#211)
3
7
 
@@ -23,13 +23,13 @@ module Sfn
23
23
  else
24
24
  result = lint_template(raw_template)
25
25
  if(result == true)
26
- ui.puts ui.color(' -> VALID', :green, :bold)
26
+ ui.info ui.color(' -> VALID', :green, :bold)
27
27
  else
28
- ui.puts ui.color(' -> INVALID', :red, :bold)
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.puts "#{ui.color(' *', :red, :bold)} #{f_msg}"
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(Sfn::Utils::StackParameterScrubber.scrub!(stack_definition))
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 = Sfn::Utils::StackParameterScrubber.scrub!(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')
@@ -1,4 +1,4 @@
1
1
  module Sfn
2
2
  # Current library version
3
- VERSION = Gem::Version.new('3.0.14')
3
+ VERSION = Gem::Version.new('3.0.16')
4
4
  end
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.14
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-05-20 00:00:00.000000000 Z
11
+ date: 2016-06-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bogo-cli