Method: FIR::Util::ClassMethods#check_file_exist

Defined in:
lib/fir/util.rb

#check_file_exist(path) ⇒ Object



44
45
46
47
48
49
# File 'lib/fir/util.rb', line 44

def check_file_exist(path)
  return if File.file?(path)

  logger.error "File does not exist: #{path}"
  exit 1
end