Class: Dependabot::Deno::FileUpdater::LockfileUpdater

Inherits:
Object
  • Object
show all
Extended by:
T::Sig
Defined in:
lib/dependabot/deno/file_updater/lockfile_updater.rb

Constant Summary collapse

LOCKFILE_FILENAME =
T.let("deno.lock", String)

Instance Method Summary collapse

Constructor Details

#initialize(dependencies:, dependency_files:, credentials:) ⇒ LockfileUpdater

Returns a new instance of LockfileUpdater.



30
31
32
33
34
35
36
# File 'lib/dependabot/deno/file_updater/lockfile_updater.rb', line 30

def initialize(dependencies:, dependency_files:, credentials:)
  @dependencies = dependencies
  @dependency_files = dependency_files
  # Reserved for DENO_AUTH_TOKENS / private registry support — accepted now
  # so callers don't need a signature change when that lands.
  @credentials = credentials
end

Instance Method Details

#updated_lockfile_contentObject



39
40
41
42
43
44
# File 'lib/dependabot/deno/file_updater/lockfile_updater.rb', line 39

def updated_lockfile_content
  @updated_lockfile_content ||= T.let(
    regenerate_lockfile,
    T.nilable(String)
  )
end