This commit is contained in:
amartynov 2015-11-17 14:43:23 +03:00
parent 645e0cbf24
commit c0b932e749
2 changed files with 9 additions and 7 deletions

View File

@ -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)

View File

@ -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