Sha256: 796e8d9c0b317e8ed7ddc39c71994c6d02a7cc13edb322d002c9ce53f3385f3c

Contents?: true

Size: 273 Bytes

Versions: 98

Compression:

Stored size: 273 Bytes

Contents

class Dir

  @@mutex = Mutex.new

  def self.glob_dir(pattern, dir)
    result = nil
    @@mutex.synchronize do
      Dir.chdir(dir) do
        result = Dir.glob(pattern)
      end
    end
    return result
  end

  def self.mutex
    @@mutex
  end

end

Version data entries

98 entries across 98 versions & 1 rubygems

Version Path
bake-toolkit-2.62.0 lib/common/ext/dir.rb
bake-toolkit-2.61.0 lib/common/ext/dir.rb
bake-toolkit-2.60.2 lib/common/ext/dir.rb
bake-toolkit-2.60.0 lib/common/ext/dir.rb
bake-toolkit-2.59.0 lib/common/ext/dir.rb
bake-toolkit-2.58.0 lib/common/ext/dir.rb
bake-toolkit-2.57.0 lib/common/ext/dir.rb
bake-toolkit-2.56.0 lib/common/ext/dir.rb
bake-toolkit-2.55.1 lib/common/ext/dir.rb
bake-toolkit-2.55.0 lib/common/ext/dir.rb
bake-toolkit-2.54.3 lib/common/ext/dir.rb
bake-toolkit-2.54.2 lib/common/ext/dir.rb
bake-toolkit-2.54.1 lib/common/ext/dir.rb
bake-toolkit-2.54.0 lib/common/ext/dir.rb
bake-toolkit-2.53.0 lib/common/ext/dir.rb
bake-toolkit-2.52.1 lib/common/ext/dir.rb
bake-toolkit-2.52.0 lib/common/ext/dir.rb
bake-toolkit-2.51.2 lib/common/ext/dir.rb
bake-toolkit-2.51.1 lib/common/ext/dir.rb
bake-toolkit-2.51.0 lib/common/ext/dir.rb