Class: Dir

Inherits:
Object
  • Object
show all
Defined in:
lib/hydra/tmpdir.rb

Class Method Summary collapse

Class Method Details

.consistent_tmpdirObject



4
5
6
7
8
9
10
# File 'lib/hydra/tmpdir.rb', line 4

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