Class: Dependabot::CLI::Scan
- Inherits:
-
Object
- Object
- Dependabot::CLI::Scan
- Defined in:
- lib/dependabot/cli/scan.rb
Instance Attribute Summary collapse
-
#options ⇒ Object
readonly
Returns the value of attribute options.
-
#path ⇒ Object
readonly
Returns the value of attribute path.
Instance Method Summary collapse
-
#initialize(path, options) ⇒ Scan
constructor
A new instance of Scan.
- #run ⇒ Object
Constructor Details
#initialize(path, options) ⇒ Scan
Returns a new instance of Scan.
8 9 10 11 |
# File 'lib/dependabot/cli/scan.rb', line 8 def initialize(path, ) @path = ::Pathname.new(path) @options = end |
Instance Attribute Details
#options ⇒ Object (readonly)
Returns the value of attribute options.
6 7 8 |
# File 'lib/dependabot/cli/scan.rb', line 6 def @options end |
#path ⇒ Object (readonly)
Returns the value of attribute path.
6 7 8 |
# File 'lib/dependabot/cli/scan.rb', line 6 def path @path end |
Instance Method Details
#run ⇒ Object
13 14 15 16 17 |
# File 'lib/dependabot/cli/scan.rb', line 13 def run each_dependency do |dependency| update(dependency) if match?(dependency) end end |