Module: Legion::Extensions::Esphome::Runners::Logs
- Includes:
- Helpers::Lex
- Defined in:
- lib/legion/extensions/esphome/runners/logs.rb
Class Method Summary collapse
Class Method Details
.process(value:, **payload) ⇒ Object
6 7 8 9 10 11 12 |
# File 'lib/legion/extensions/esphome/runners/logs.rb', line 6 def self.process(value:, **payload) { log: value.gsub(/\e\[([;\d]+)?m/, ''), location: payload[:routing_key].split('.').last, timestamp_in_ms: payload[:timestamp_in_ms] } end |