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.50.0 lib/common/ext/dir.rb
bake-toolkit-2.49.0 lib/common/ext/dir.rb
bake-toolkit-2.48.3 lib/common/ext/dir.rb
bake-toolkit-2.48.2 lib/common/ext/dir.rb
bake-toolkit-2.48.1 lib/common/ext/dir.rb
bake-toolkit-2.48.0 lib/common/ext/dir.rb
bake-toolkit-2.47.1 lib/common/ext/dir.rb
bake-toolkit-2.47.0 lib/common/ext/dir.rb
bake-toolkit-2.46.0 lib/common/ext/dir.rb
bake-toolkit-2.45.0 lib/common/ext/dir.rb
bake-toolkit-2.44.1 lib/common/ext/dir.rb
bake-toolkit-2.44.0 lib/common/ext/dir.rb
bake-toolkit-2.43.2 lib/common/ext/dir.rb
bake-toolkit-2.43.1 lib/common/ext/dir.rb
bake-toolkit-2.43.0 lib/common/ext/dir.rb
bake-toolkit-2.42.3 lib/common/ext/dir.rb
bake-toolkit-2.42.2 lib/common/ext/dir.rb
bake-toolkit-2.42.1 lib/common/ext/dir.rb
bake-toolkit-2.42.0 lib/common/ext/dir.rb
bake-toolkit-2.41.4 lib/common/ext/dir.rb