Update bundle (with newest rubocop version) and fix offenses

This commit is contained in:
Sebastian Serth
2022-01-03 18:11:17 +01:00
parent 57e32611ed
commit ea85519163
93 changed files with 968 additions and 985 deletions

View File

@ -315,7 +315,7 @@ container_execution_time: nil}
@tubesock&.send_data JSON.dump({'cmd' => 'timeout'})
if @socket
begin
@socket.send('#timeout')
@socket.send('#timeout') # rubocop:disable Performance/StringIdentifierArgument
# sleep one more second to ensure that the message reaches the submissions_controller.
sleep(1)
@socket.close
@ -434,9 +434,9 @@ container_execution_time: nil}
end
def self.mapped_ports(execution_environment)
execution_environment.exposed_ports.map do |port|
execution_environment.exposed_ports.to_h do |port|
["#{port}/tcp", [{'HostPort' => PortPool.available_port.to_s}]]
end.to_h
end
end
def self.pull(docker_image)