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.
- data/lib/rake/cloud_formation.rb +4 -3
- data/rake-cloudformation.gemspec +1 -1
- metadata +1 -1
data/lib/rake/cloud_formation.rb
CHANGED
@@ -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'
|
data/rake-cloudformation.gemspec
CHANGED