lib/omnibus/file_syncer.rb
def glob(pattern)
      pattern = Pathname.new(pattern).cleanpath.to_s
      Dir.glob(pattern, File::FNM_DOTMATCH).sort.reject do |file|
        basename = File.basename(file)
        IGNORED_FILES.include?(basename)
      end
    end
def glob(pattern)
      pattern = Pathname.new(pattern).cleanpath.to_s
      Dir.glob(pattern, File::FNM_DOTMATCH).sort.reject do |file|
        basename = File.basename(file)
        IGNORED_FILES.include?(basename)
      end
    end
Glob across the given pattern, accounting for dotfiles, removing Ruby's
 dumb idea to include +'.'+ and +'..'+ as entries.

 @param [String] pattern
   the path or glob pattern to get all files from

 @return [Array<String>]
   the list of all files