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.
25 26 27 |
# File 'lib/dependabot/python/file_parser/pipfile_files_parser.rb', line 25 def initialize(dependency_files:) @dependency_files = dependency_files end |
Instance Method Details
#dependency_set ⇒ Object
29 30 31 32 33 34 35 36 |
# File 'lib/dependabot/python/file_parser/pipfile_files_parser.rb', line 29 def dependency_set dependency_set = Dependabot::FileParsers::Base::DependencySet.new dependency_set += pipfile_dependencies dependency_set += pipfile_lock_dependencies dependency_set end |