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.72.0 lib/common/ext/dir.rb
bake-toolkit-2.71.0 lib/common/ext/dir.rb
bake-toolkit-2.70.1 lib/common/ext/dir.rb
bake-toolkit-2.70.0 lib/common/ext/dir.rb
bake-toolkit-2.69.0 lib/common/ext/dir.rb
bake-toolkit-2.68.1 lib/common/ext/dir.rb
bake-toolkit-2.68.0 lib/common/ext/dir.rb
bake-toolkit-2.67.0 lib/common/ext/dir.rb
bake-toolkit-2.66.0 lib/common/ext/dir.rb
bake-toolkit-2.65.2 lib/common/ext/dir.rb
bake-toolkit-2.65.1 lib/common/ext/dir.rb
bake-toolkit-2.65.0 lib/common/ext/dir.rb
bake-toolkit-2.64.4 lib/common/ext/dir.rb
bake-toolkit-2.64.3 lib/common/ext/dir.rb
bake-toolkit-2.64.2 lib/common/ext/dir.rb
bake-toolkit-2.64.1 lib/common/ext/dir.rb
bake-toolkit-2.64.0 lib/common/ext/dir.rb
bake-toolkit-2.63.2 lib/common/ext/dir.rb
bake-toolkit-2.63.1 lib/common/ext/dir.rb
bake-toolkit-2.63.0 lib/common/ext/dir.rb