class Salvage::Utils

Public Class Methods

envvar_to_array(value) click to toggle source
# File lib/salvage/utils.rb, line 8
def self.envvar_to_array(value)
  paths = value.to_s =~ %r{^\((.*)\)$} ? $~[1] : ''
  paths.split(' ')
end
home_dir(relpath) click to toggle source
# File lib/salvage/utils.rb, line 4
def self.home_dir(relpath)
  File.join(Dir.home(Etc.getpwuid.name), relpath)
end