Module: Riser::TemporaryPath

Defined in:
lib/riser/temppath.rb

Class Method Summary collapse

Class Method Details

.make_drbunix_uriObject



15
16
17
# File 'lib/riser/temppath.rb', line 15

def make_drbunix_uri
  "drbunix:#{make_unix_socket_path}.drb"
end

.make_unix_socket_pathObject



8
9
10
11
12
# File 'lib/riser/temppath.rb', line 8

def make_unix_socket_path
  tmp_dir = Dir.tmpdir
  uuid = SecureRandom.uuid
  "#{tmp_dir}/riser_#{uuid}"
end