Sha256: d3ce5afcead6eb2e12cdf006312ece163a8ab47bfff0a924490eb979e476a86a

Contents?: true

Size: 712 Bytes

Versions: 8

Compression:

Stored size: 712 Bytes

Contents

# frozen_string_literal: true
module Licensed
  module Commands
    class List < Command
      def initialize(config:, reporter: Licensed::Reporters::ListReporter.new)
        super(config: config, reporter: reporter)
      end

      protected

      # Listing dependencies requires no extra work.
      #
      # app - The application configuration for the dependency
      # source - The dependency source enumerator for the dependency
      # dependency - An application dependency
      # report - A report hash for the command to provide extra data for the report output.
      #
      # Returns true.
      def evaluate_dependency(app, source, dependency, report)
        true
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
licensed-2.4.0 lib/licensed/commands/list.rb
licensed-2.3.2 lib/licensed/commands/list.rb
licensed-2.3.1 lib/licensed/commands/list.rb
licensed-2.3.0 lib/licensed/commands/list.rb
licensed-2.2.0 lib/licensed/commands/list.rb
licensed-2.1.0 lib/licensed/commands/list.rb
licensed-2.0.1 lib/licensed/commands/list.rb
licensed-2.0.0 lib/licensed/commands/list.rb