Remove outdated output callback from Runner::Connection

This commit is contained in:
Sebastian Serth
2021-10-10 15:13:59 +02:00
parent cc98dc2229
commit 0f92526494

View File

@ -5,7 +5,7 @@ require 'json_schemer'
class Runner::Connection class Runner::Connection
# These are events for which callbacks can be registered. # These are events for which callbacks can be registered.
EVENTS = %i[start output exit stdout stderr].freeze EVENTS = %i[start exit stdout stderr].freeze
WEBSOCKET_MESSAGE_TYPES = %i[start stdout stderr error timeout exit].freeze WEBSOCKET_MESSAGE_TYPES = %i[start stdout stderr error timeout exit].freeze
BACKEND_OUTPUT_SCHEMA = JSONSchemer.schema(JSON.parse(File.read('lib/runner/backend-output.schema.json'))) BACKEND_OUTPUT_SCHEMA = JSONSchemer.schema(JSON.parse(File.read('lib/runner/backend-output.schema.json')))
@ -134,12 +134,10 @@ class Runner::Connection
def handle_stdout(event) def handle_stdout(event)
@stdout_callback.call event[:data] @stdout_callback.call event[:data]
@output_callback.call event[:data]
end end
def handle_stderr(event) def handle_stderr(event)
@stderr_callback.call event[:data] @stderr_callback.call event[:data]
@output_callback.call event[:data]
end end
def handle_error(_event); end def handle_error(_event); end