Sha256: c71b5af1d9b00fe419404e8eee0021e578b6461b1d18ffe3c38939a6ea7c29a2
Contents?: true
Size: 505 Bytes
Versions: 15
Compression:
Stored size: 505 Bytes
Contents
# frozen_string_literal: true module AnnotateRb class ConfigFinder DOTFILE = ".annotaterb.yml" class << self def find_project_root # We should expect this method to be called from a Rails project root and returning it # e.g. "/Users/drwl/personal/annotaterb/dummyapp" Dir.pwd end def find_project_dotfile file_path = File.expand_path(DOTFILE, find_project_root) return file_path if File.exist?(file_path) end end end end
Version data entries
15 entries across 15 versions & 1 rubygems