Sha256: d1298c68210ec6aaa76a3be0ab427fc43cb62167b8b15de5296cc87db646a03c

Contents?: true

Size: 328 Bytes

Versions: 18

Compression:

Stored size: 328 Bytes

Contents

class SearchConfPath
  def initialize(dir, home)
    @dir = dir
    @home = home
    search_conf_path()
  end

  def search_conf_path()
    while @dir != @home
      if File.exists?(File.join(@dir, ".qiita.conf"))
        return @dir
      else
        @dir = @dir.match(/(.+)\//)[1]
      end
    end
    return @dir
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
qiita_org-0.1.22 lib/qiita_org/search_conf_path.rb
qiita_org-0.1.21 lib/qiita_org/search_conf_path.rb
qiita_org-0.1.20 lib/qiita_org/search_conf_path.rb
qiita_org-0.1.19 lib/qiita_org/search_conf_path.rb
qiita_org-0.1.18 lib/qiita_org/search_conf_path.rb
qiita_org-0.1.17 lib/qiita_org/search_conf_path.rb
qiita_org-0.1.16 lib/qiita_org/search_conf_path.rb
qiita_org-0.1.15 lib/qiita_org/search_conf_path.rb
qiita_org-0.1.14 lib/qiita_org/search_conf_path.rb
qiita_org-0.1.13 lib/qiita_org/search_conf_path.rb
qiita_org-0.1.12 lib/qiita_org/search_conf_path.rb
qiita_org-0.1.11 lib/qiita_org/search_conf_path.rb
qiita_org-0.1.10 lib/qiita_org/search_conf_path.rb
qiita_org-0.1.9 lib/qiita_org/search_conf_path.rb
qiita_org-0.1.8 lib/qiita_org/search_conf_path.rb
qiita_org-0.1.7 lib/qiita_org/search_conf_path.rb
qiita_org-0.1.6 lib/qiita_org/search_conf_path.rb
qiita_org-0.1.5 lib/qiita_org/search_conf_path.rb