Class: AnnotateRb::ConfigFinder
- Inherits:
-
Object
- Object
- AnnotateRb::ConfigFinder
- Defined in:
- lib/annotate_rb/config_finder.rb
Constant Summary collapse
- DOTFILE =
".annotaterb.yml"
Class Method Summary collapse
Class Method Details
.find_project_dotfile ⇒ Object
14 15 16 17 18 |
# File 'lib/annotate_rb/config_finder.rb', line 14 def find_project_dotfile file_path = File.(DOTFILE, find_project_root) return file_path if File.exist?(file_path) end |
.find_project_root ⇒ Object
8 9 10 11 12 |
# File 'lib/annotate_rb/config_finder.rb', line 8 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 |