Some logging, some code simplification, clear canvas on start

This commit is contained in:
Ralf Teusner
2015-11-03 15:54:08 +01:00
parent ef60494911
commit eb8c0e46fa
3 changed files with 10 additions and 3 deletions

View File

@ -218,7 +218,7 @@ class DockerClient
"""
Run commands by attaching a websocket to Docker.
"""
command = submission.execution_environment.send(:"run_command") % command_substitutions(filename)
command = submission.execution_environment.run_command % command_substitutions(filename)
create_workspace_files = proc { create_workspace_files(container, submission) }
execute_websocket_command(command, create_workspace_files, block)
end
@ -227,7 +227,7 @@ class DockerClient
"""
Stick to existing Docker API with exec command.
"""
command = submission.execution_environment.send(:"test_command") % command_substitutions(filename)
command = submission.execution_environment.test_command % command_substitutions(filename)
create_workspace_files = proc { create_workspace_files(container, submission) }
execute_command(command, create_workspace_files, block)
end