rake-cloudformation 3 → 4

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.
@@ -1,5 +1,6 @@
1
1
  # ex: syntax=ruby ts=2 sw=2 si et
2
2
  require 'aws-sdk'
3
+ require 'set'
3
4
 
4
5
  module Rake
5
6
  module CloudFormation
@@ -15,8 +16,8 @@ module Rake
15
16
  super
16
17
  @region = 'us-east-1'
17
18
  @parameters = {}
18
- @capabilities = []
19
- @notification_arns = []
19
+ @capabilities = Set.new
20
+ @notification_arns = Set.new
20
21
  end
21
22
 
22
23
  def self.define_task(args, &block)
@@ -66,7 +67,7 @@ module Rake
66
67
  end
67
68
  end
68
69
  options[:capabilities] = capabilities.to_a unless capabilities.empty?
69
- options[:notification_arns] = notification_arns unless notification_arns.empty?
70
+ options[:notification_arns] = notification_arns.to_a unless notification_arns.empty?
70
71
  puts "Creating CloudFormation stack: #{name}"
71
72
  cf(region).create_stack(options)
72
73
  while cf(region).describe_stacks({stack_name: name}).stacks.first.stack_status === 'CREATE_IN_PROGRESS'
@@ -10,7 +10,7 @@ Gem::Specification.new do |gem|
10
10
  gem.files = `git ls-files`.split($\)
11
11
  gem.name = 'rake-cloudformation'
12
12
  gem.require_paths = [ 'lib' ]
13
- gem.version = '3'
13
+ gem.version = '4'
14
14
 
15
15
  gem.add_runtime_dependency 'aws-sdk', '~> 2'
16
16
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rake-cloudformation
3
3
  version: !ruby/object:Gem::Version
4
- version: '3'
4
+ version: '4'
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: