Sha256: 03e6f2c9763c77cc132541a14a3c82b16d7252319ebff691a74e75aa680cd850
Contents?: true
Size: 368 Bytes
Versions: 15
Compression:
Stored size: 368 Bytes
Contents
module Volt module RecursiveExists def self.exists_here_or_up?(file) # Check for a gemfile here or up a directory pwd = Dir.pwd loop do if File.exists?("#{pwd}/#{file}") return true else pwd = pwd.gsub(/\/[^\/]+$/, '') return false if pwd == '' end end false end end end
Version data entries
15 entries across 15 versions & 1 rubygems