Sha256: 4760726f4c61cb788c9f21259295cc65816a4a9952362aa6f1c8c202f10cdf99
Contents?: true
Size: 496 Bytes
Versions: 5
Compression:
Stored size: 496 Bytes
Contents
module Actions module RemoteExecution module Helpers module LiveOutput def exception_to_output(context, exception, timestamp = Time.now) format_output(context + ": #{exception.class} - #{exception.message}", 'debug', timestamp) end def format_output(message, type = 'debug', timestamp = Time.now) { 'output_type' => type, 'output' => message, 'timestamp' => timestamp.to_f } end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems