Class: Dependabot::Python::FileParser::PipfileFilesParser
- Inherits:
-
Object
- Object
- Dependabot::Python::FileParser::PipfileFilesParser
- Defined in:
- lib/dependabot/python/file_parser/pipfile_files_parser.rb
Constant Summary collapse
- DEPENDENCY_GROUP_KEYS =
[ { pipfile: "packages", lockfile: "default" }, { pipfile: "dev-packages", lockfile: "develop" } ].freeze
Instance Method Summary collapse
- #dependency_set ⇒ Object
-
#initialize(dependency_files:) ⇒ PipfileFilesParser
constructor
A new instance of PipfileFilesParser.
Constructor Details
#initialize(dependency_files:) ⇒ PipfileFilesParser
Returns a new instance of PipfileFilesParser.
27 28 29 |
# File 'lib/dependabot/python/file_parser/pipfile_files_parser.rb', line 27 def initialize(dependency_files:) @dependency_files = dependency_files end |
Instance Method Details
#dependency_set ⇒ Object
31 32 33 34 35 36 37 38 |
# File 'lib/dependabot/python/file_parser/pipfile_files_parser.rb', line 31 def dependency_set dependency_set = Dependabot::FileParsers::Base::DependencySet.new dependency_set += pipfile_dependencies dependency_set += pipfile_lock_dependencies dependency_set end |