Sha256: 93682c70aa8249029de7245eb150bbe0fb6fd47455d7c6641d70993039c6adc2

Contents?: true

Size: 309 Bytes

Versions: 11

Compression:

Stored size: 309 Bytes

Contents

# frozen_string_literal: true

module Spandx
  module Cli
    module Printers
      class Csv < Printer
        def match?(format)
          format.to_sym == :csv
        end

        def print_line(dependency, io)
          io.puts(CSV.generate_line(dependency.to_a))
        end
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
spandx-0.18.3 lib/spandx/cli/printers/csv.rb
spandx-0.18.2 lib/spandx/cli/printers/csv.rb
spandx-0.18.1 lib/spandx/cli/printers/csv.rb
spandx-0.18.0 lib/spandx/cli/printers/csv.rb
spandx-0.17.0 lib/spandx/cli/printers/csv.rb
spandx-0.16.1 lib/spandx/cli/printers/csv.rb
spandx-0.16.0 lib/spandx/cli/printers/csv.rb
spandx-0.15.1 lib/spandx/cli/printers/csv.rb
spandx-0.15.0 lib/spandx/cli/printers/csv.rb
spandx-0.14.0 lib/spandx/cli/printers/csv.rb
spandx-0.13.5 lib/spandx/cli/printers/csv.rb