Class: Licensed::Sources::Pipenv

Inherits:
Pip
  • Object
show all
Defined in:
lib/licensed/sources/pipenv.rb

Constant Summary

Constants inherited from Pip

Licensed::Sources::Pip::PACKAGE_INFO_SEPARATOR

Instance Attribute Summary

Attributes inherited from Source

#config

Instance Method Summary collapse

Methods inherited from Pip

#enumerate_dependencies

Methods inherited from Source

#dependencies, #enumerate_dependencies, full_type, #ignored?, inherited, #initialize, register_source, type, type_and_version

Constructor Details

This class inherits a constructor from Licensed::Sources::Source

Instance Method Details

#enabled?Boolean

Returns:

  • (Boolean)


8
9
10
# File 'lib/licensed/sources/pipenv.rb', line 8

def enabled?
  Licensed::Shell.tool_available?("pipenv") && File.exist?(config.pwd.join("Pipfile.lock"))
end