Sha256: e2c17d9ea185ce786300e32cdff6f6866c30a28358e155f70de0beac4ec49995

Contents?: true

Size: 841 Bytes

Versions: 12

Compression:

Stored size: 841 Bytes

Contents

# frozen_string_literal: true
module Licensed
  module Commands
    class List < Command
      # Create a reporter to use during a command run
      #
      # options - The options the command was run with
      #
      # Returns a Licensed::Reporters::ListReporter
      def create_reporter(options)
        Licensed::Reporters::ListReporter.new
      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

12 entries across 12 versions & 1 rubygems

Version Path
licensed-2.11.1 lib/licensed/commands/list.rb
licensed-2.11.0 lib/licensed/commands/list.rb
licensed-2.10.0 lib/licensed/commands/list.rb
licensed-2.9.2 lib/licensed/commands/list.rb
licensed-2.9.1 lib/licensed/commands/list.rb
licensed-2.9.0 lib/licensed/commands/list.rb
licensed-2.8.0 lib/licensed/commands/list.rb
licensed-2.7.0 lib/licensed/commands/list.rb
licensed-2.6.2 lib/licensed/commands/list.rb
licensed-2.6.1 lib/licensed/commands/list.rb
licensed-2.6.0 lib/licensed/commands/list.rb
licensed-2.5.0 lib/licensed/commands/list.rb