class Dependabot::DependencyFileNotFound

File level errors #

Attributes

file_path[R]

Public Class Methods

new(file_path, msg = nil) click to toggle source
Calls superclass method Dependabot::DependabotError::new
# File lib/dependabot/errors.rb, line 81
def initialize(file_path, msg = nil)
  @file_path = file_path
  super(msg)
end

Public Instance Methods

directory() click to toggle source
# File lib/dependabot/errors.rb, line 90
def directory
  # Directory should always start with a `/`
  file_path.split("/")[0..-2].join("/").sub(%r{^/*}, "/")
end
file_name() click to toggle source
# File lib/dependabot/errors.rb, line 86
def file_name
  file_path.split("/").last
end