Method: LicenseFinder::Pip#initialize
- Defined in:
- lib/license_finder/package_managers/pip.rb
#initialize(options = {}) ⇒ Pip
Returns a new instance of Pip.
9 10 11 12 13 14 |
# File 'lib/license_finder/package_managers/pip.rb', line 9 def initialize( = {}) super @requirements_path = [:pip_requirements_path] || Pathname('requirements.txt') @python_version = [:python_version] || DEFAULT_VERSION raise "Invalid python version \'#{@python_version}\'. Valid versions are '2' or '3'." unless %w[2 3].include?(@python_version) end |