lib/hrw/scanner/pipfile.rb in hrw-0.2.1 vs lib/hrw/scanner/pipfile.rb in hrw-0.2.2
- old
+ new
@@ -4,15 +4,18 @@
module Scanner
#
# Used to scan gem lock file
#
class Pipfile
+ attr_reader :package_manager
+
# Class constructor
#
# @param [String] root The path to the project root
# @param [String] lockfile
# The name for the lock file, default is `Pipfile.lock`
def initialize(root = Dir.pwd, lockfile = 'Pipfile.lock')
+ @package_manager = 'pypi'
@root = root
@lockfile = lockfile
end
# Scan the lock file
\ No newline at end of file