Method: Ops.pwd_dir
- Defined in:
- lib/ops/common.rb
.pwd_dir ⇒ Object
8 9 10 11 12 13 |
# File 'lib/ops/common.rb', line 8 def self.pwd_dir Pathname.new( Dir.pwd ).ascend do | p | return p if File.exists? File.join( p, 'config.json' ) end nil end |