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
extend self
RESULT_CODES = {
stack_rolled_back: 1,
unkown_status: 2,
timeout: 3,
error: 5
}
def self.result_codes
{
stack_rolled_back: 1,
unkown_status: 2,
timeout: 3,
error: 5
}
RESULT_CODES
end
def self.result_code(code)
@ -33,7 +35,6 @@ module StackCommands
end
case stack.stack_status
when 'CREATE_IN_PROGRESS'
out << "."
out.flush
when 'CREATE_COMPLETE'
mongo.stack_update(stack)

View File

@ -23,6 +23,7 @@ class StackBootstrapWorker < Worker
begin
stack = create_stack(stack_attrs)
rescue StackCreatingError
@out.puts "Stack creating error"
return 1
end