Sha256: 40059433fee3b9c7b206f30c5345ee82ec3eb474694c29a6c88ceed915a75b9b

Contents?: true

Size: 246 Bytes

Versions: 20

Compression:

Stored size: 246 Bytes

Contents

require 'tmpdir'

class Dir
  def self.consistent_tmpdir
    if RUBY_PLATFORM =~ /darwin/i
      '/tmp' # OS X normally returns a crazy tmpdir, BUT when logged in via SSH, it is '/tmp'. This unifies it.
    else
      Dir.tmpdir
    end
  end
end

Version data entries

20 entries across 20 versions & 6 rubygems

Version Path
ngauthier-hydra-0.24.0 lib/hydra/tmpdir.rb
nulogy-hydra-0.26.0 lib/hydra/tmpdir.rb
arturop-hydra-0.25.0 lib/hydra/tmpdir.rb
arturop-hydra-0.24.0 lib/hydra/tmpdir.rb
hydra-0.24.0 lib/hydra/tmpdir.rb
nulogy-hydra-0.23.2.1 lib/hydra/tmpdir.rb
justinf-hydra-0.23.8 lib/hydra/tmpdir.rb
justinf-hydra-0.23.7 lib/hydra/tmpdir.rb
justinf-hydra-0.23.6 lib/hydra/tmpdir.rb
justinf-hydra-0.23.5 lib/hydra/tmpdir.rb
justinf-hydra-0.23.4 lib/hydra/tmpdir.rb
arturop-hydra-0.23.4 lib/hydra/tmpdir.rb
sskirby-hydra-0.23.3 lib/hydra/tmpdir.rb
hydra-0.23.3 lib/hydra/tmpdir.rb
hydra-0.23.2 lib/hydra/tmpdir.rb
hydra-0.23.1 lib/hydra/tmpdir.rb
hydra-0.23.0 lib/hydra/tmpdir.rb
hydra-0.22.2 lib/hydra/tmpdir.rb
hydra-0.22.1 lib/hydra/tmpdir.rb
hydra-0.22.0 lib/hydra/tmpdir.rb