Class: Dependabot::FileUpdaters::VendorUpdater

Inherits:
ArtifactUpdater show all
Defined in:
lib/dependabot/file_updaters/vendor_updater.rb

Instance Method Summary collapse

Methods inherited from ArtifactUpdater

#updated_files

Constructor Details

#initialize(repo_contents_path:, vendor_dir:) ⇒ VendorUpdater

This provides backwards compatability for anyone who used this class before the base ArtifactUpdater class was introduced and aligns the method’s public signatures with it’s special-case domain.



19
20
21
22
23
# File 'lib/dependabot/file_updaters/vendor_updater.rb', line 19

def initialize(repo_contents_path:, vendor_dir:)
  @repo_contents_path = repo_contents_path
  @vendor_dir = vendor_dir
  super(repo_contents_path: @repo_contents_path, target_directory: @vendor_dir)
end