Sha256: f71c430ba7976501e3778838b4d173a8861afaf3a0267b3e6128deaf874711b8
Contents?: true
Size: 517 Bytes
Versions: 1
Compression:
Stored size: 517 Bytes
Contents
# frozen_string_literal: true module Spandx module Commands class Scan < Spandx::Command attr_reader :lockfile def initialize(lockfile, options) @lockfile = lockfile ? ::Pathname.new(File.expand_path(lockfile)) : nil @options = options end def execute(output: $stdout) if lockfile.nil? output.puts 'OK' else report = Parsers.for(lockfile).parse(lockfile) output.puts report.to_json end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
spandx-0.1.3 | lib/spandx/commands/scan.rb |