opendelivery 0.0.15 → 0.0.16
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/opendelivery/stack.rb +4 -4
- metadata +1 -1
data/lib/opendelivery/stack.rb
CHANGED
@@ -47,14 +47,14 @@ module OpenDelivery
|
|
47
47
|
end
|
48
48
|
|
49
49
|
|
50
|
-
def create(stack_name, template, parameters = {}, wait
|
50
|
+
def create(stack_name, template, parameters = {}, wait=false, domain=nil)
|
51
51
|
stack = @cfn.stacks.create(stack_name,
|
52
52
|
File.open(template, "r").read,
|
53
53
|
:parameters => parameters,
|
54
54
|
:capabilities => ["CAPABILITY_IAM"],
|
55
55
|
:disable_rollback => true)
|
56
56
|
|
57
|
-
wait_for_stack(stack, wait
|
57
|
+
wait_for_stack(stack, wait)
|
58
58
|
|
59
59
|
@domain.load_stack_properties(domain, stack)
|
60
60
|
end
|
@@ -92,8 +92,8 @@ module OpenDelivery
|
|
92
92
|
|
93
93
|
protected
|
94
94
|
|
95
|
-
def wait_for_stack(stack, wait
|
96
|
-
if wait
|
95
|
+
def wait_for_stack(stack, wait)
|
96
|
+
if wait
|
97
97
|
while stack.status != "CREATE_COMPLETE"
|
98
98
|
sleep 20
|
99
99
|
|