Sha256: f3eb8798f93f28a77cc68c4bf9efb718621c1ef24d6911fbbb4493d66daf180c
Contents?: true
Size: 515 Bytes
Versions: 1
Compression:
Stored size: 515 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.2 | lib/spandx/commands/scan.rb |