Class: Cosmos::NewPacketLogProcessor
- Defined in:
- lib/cosmos/processors/new_packet_log_processor.rb
Instance Attribute Summary
Attributes inherited from Processor
Instance Method Summary collapse
-
#call(packet, buffer) ⇒ Object
Create a new log file.
-
#initialize(packet_log_writer_name = 'ALL') ⇒ NewPacketLogProcessor
constructor
A new instance of NewPacketLogProcessor.
Methods inherited from Processor
Constructor Details
#initialize(packet_log_writer_name = 'ALL') ⇒ NewPacketLogProcessor
Returns a new instance of NewPacketLogProcessor.
18 19 20 21 |
# File 'lib/cosmos/processors/new_packet_log_processor.rb', line 18 def initialize(packet_log_writer_name = 'ALL') super() @packet_log_writer_name = packet_log_writer_name end |
Instance Method Details
#call(packet, buffer) ⇒ Object
Create a new log file
See Processor#call
26 27 28 29 30 |
# File 'lib/cosmos/processors/new_packet_log_processor.rb', line 26 def call(packet, buffer) if CmdTlmServer.instance and $0 !~ /Replay/ CmdTlmServer.instance.start_logging(@packet_log_writer_name) end end |