Module: Hawk::CLI
- Defined in:
- lib/hawk/cli.rb
Defined Under Namespace
Modules: Options
Class Method Summary collapse
Class Method Details
.closest_hawkfile(dir) ⇒ Object
44 45 46 47 48 49 50 51 52 53 |
# File 'lib/hawk/cli.rb', line 44 def self.closest_hawkfile(dir) file_name = File.join(dir, 'Hawkfile') if File.exists?(file_name) file_name elsif dir == '/' nil else closest_hawkfile(File.(File.join(dir, '..'))) end end |