Class: Dependabot::Devbox::FileUpdater

Inherits:
FileUpdaters::Base
  • Object
show all
Extended by:
T::Sig
Defined in:
lib/dependabot/devbox/file_updater.rb

Constant Summary collapse

MANIFEST_FILENAME =
T.let("devbox.json", String)
LOCKFILE_FILENAME =
T.let("devbox.lock", String)
LATEST =
T.let("latest", String)

Instance Method Summary collapse

Instance Method Details

#updated_dependency_filesObject



22
23
24
25
26
27
28
29
30
31
32
33
# File 'lib/dependabot/devbox/file_updater.rb', line 22

def updated_dependency_files
  updated_files = []

  new_manifest_content = updated_manifest_content
  if new_manifest_content != manifest.content
    updated_files << updated_file(file: manifest, content: new_manifest_content)
  end

  updated_files << lockfile_dependency_file(regenerated_lockfile_content(new_manifest_content))

  updated_files
end