Class: Necropsy::Analyzers::Dynamic::RedisPayloadLoader
- Inherits:
-
Object
- Object
- Necropsy::Analyzers::Dynamic::RedisPayloadLoader
- Defined in:
- lib/necropsy/analyzers/dynamic/coverband_importer.rb
Constant Summary collapse
- DEFAULT_PATTERN =
'coverband*'
Instance Method Summary collapse
-
#initialize(source:, config:) ⇒ RedisPayloadLoader
constructor
A new instance of RedisPayloadLoader.
- #load ⇒ Object
Constructor Details
#initialize(source:, config:) ⇒ RedisPayloadLoader
Returns a new instance of RedisPayloadLoader.
149 150 151 152 153 |
# File 'lib/necropsy/analyzers/dynamic/coverband_importer.rb', line 149 def initialize(source:, config:) @uri = URI(source) @config = config @socket = nil end |
Instance Method Details
#load ⇒ Object
155 156 157 158 159 160 161 162 |
# File 'lib/necropsy/analyzers/dynamic/coverband_importer.rb', line 155 def load connect authenticate select_database merge_payloads(keys.filter_map { |key| payload_for_key(key) }) ensure socket&.close end |