Sha256: 7845fb065fc2fcd873543cb2c6d4245c7f6eada549cd3ea309b7eca9bb9a9df0
Contents?: true
Size: 441 Bytes
Versions: 4
Compression:
Stored size: 441 Bytes
Contents
# frozen_string_literal: true module Mihari module Emitters class StandardOutput < Base def valid? true end def emit(title:, description:, artifacts:, source:, tags:) h = { title: title, description: description, artifacts: artifacts.map(&:data), source: source, tags: tags } puts JSON.pretty_generate(h) end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
mihari-4.1.2 | lib/mihari/emitters/stdout.rb |
mihari-4.1.1 | lib/mihari/emitters/stdout.rb |
mihari-4.1.0 | lib/mihari/emitters/stdout.rb |
mihari-4.0.0 | lib/mihari/emitters/stdout.rb |