#891: for test
This commit is contained in:
parent
645e0cbf24
commit
c0b932e749
@ -1,13 +1,15 @@
|
|||||||
module StackCommands
|
module StackCommands
|
||||||
extend self
|
extend self
|
||||||
|
|
||||||
|
RESULT_CODES = {
|
||||||
|
stack_rolled_back: 1,
|
||||||
|
unkown_status: 2,
|
||||||
|
timeout: 3,
|
||||||
|
error: 5
|
||||||
|
}
|
||||||
|
|
||||||
def self.result_codes
|
def self.result_codes
|
||||||
{
|
RESULT_CODES
|
||||||
stack_rolled_back: 1,
|
|
||||||
unkown_status: 2,
|
|
||||||
timeout: 3,
|
|
||||||
error: 5
|
|
||||||
}
|
|
||||||
end
|
end
|
||||||
|
|
||||||
def self.result_code(code)
|
def self.result_code(code)
|
||||||
@ -33,7 +35,6 @@ module StackCommands
|
|||||||
end
|
end
|
||||||
case stack.stack_status
|
case stack.stack_status
|
||||||
when 'CREATE_IN_PROGRESS'
|
when 'CREATE_IN_PROGRESS'
|
||||||
out << "."
|
|
||||||
out.flush
|
out.flush
|
||||||
when 'CREATE_COMPLETE'
|
when 'CREATE_COMPLETE'
|
||||||
mongo.stack_update(stack)
|
mongo.stack_update(stack)
|
||||||
|
|||||||
@ -23,6 +23,7 @@ class StackBootstrapWorker < Worker
|
|||||||
begin
|
begin
|
||||||
stack = create_stack(stack_attrs)
|
stack = create_stack(stack_attrs)
|
||||||
rescue StackCreatingError
|
rescue StackCreatingError
|
||||||
|
@out.puts "Stack creating error"
|
||||||
return 1
|
return 1
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user