Class: Dependabot::Docker::FileUpdater

Inherits:
Shared::SharedFileUpdater show all
Extended by:
T::Sig
Defined in:
lib/dependabot/docker/file_updater.rb

Constant Summary collapse

YAML_REGEXP =
/^[^\.].*\.ya?ml$/i
FROM_REGEX =
/FROM(\s+--platform\=\S+)?/i

Instance Method Summary collapse

Methods inherited from Shared::SharedFileUpdater

#updated_dependency_files

Instance Method Details

#container_image_regexObject



28
29
30
# File 'lib/dependabot/docker/file_updater.rb', line 28

def container_image_regex
  %r{^#{FROM_REGEX}\s+(docker\.io/)?}o
end

#file_typeObject



18
19
20
# File 'lib/dependabot/docker/file_updater.rb', line 18

def file_type
  "Dockerfile or Containerfile"
end

#yaml_file_patternObject



23
24
25
# File 'lib/dependabot/docker/file_updater.rb', line 23

def yaml_file_pattern
  YAML_REGEXP
end