Sha256: a5ded9417064eb5e16df6cc0602e3de0ce03c632b583df9637f7993a74ba2787

Contents?: true

Size: 403 Bytes

Versions: 1

Compression:

Stored size: 403 Bytes

Contents

module Bake

  def self.findDirOfFileToRoot(dir, filename)
    if !File.exist?(dir)
      Bake.formatter.printError("Error: #{dir} does not exist")
      ExitHelper.exit(1)
    end
    loop do
      completeName = dir + "/" + filename
      return dir if File.exist?(completeName)
      newDir = File.dirname(dir)
      return nil if newDir == dir
      dir = newDir
    end
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
bake-toolkit-2.72.0 lib/common/options/finder.rb