class Juli::Util::Repo
find juli-repository root from the specified path.
Attributes
juli_repo[R]
Public Class Methods
new(path = '.')
click to toggle source
# File lib/juli/util.rb, line 107 def initialize(path = '.') Pathname.new(path).realpath.ascend do |p| p_str = File.join(p, Juli::REPO) if File.directory?(p_str) @juli_repo = p return end end raise "cannot find juli repository root." end