Backup commit

This commit is contained in:
Jan Renz
2015-04-13 22:36:27 +02:00
parent cb98ef50fb
commit c0fde51f6c
5 changed files with 14 additions and 4 deletions

View File

@ -20,6 +20,11 @@ class DockerContainerPool
DockerClient.create_container(execution_environment)
end
def self.return_container(container, execution_environment)
#container.start()
@containers[execution_environment.id].push(container)
end
def self.get_container(execution_environment)
if config[:active]
@containers[execution_environment.id].try(:shift) || create_container(execution_environment)