module EnvPaths

Constants

HOMEDIR
OSData
VERSION

Public Class Methods

_platform() click to toggle source
# File lib/env_paths.rb, line 50
def self._platform
  RUBY_PLATFORM
end
get(app_name, opts = {}) click to toggle source
# File lib/env_paths.rb, line 54
def self.get(app_name, opts = {})
  suffix = opts.fetch(:suffix, 'ruby')
  app_name += "-#{suffix}" unless opts[:suffix] == false
  case _platform.downcase
  when /win32/
    Windows.config(app_name)
  when /darwin/
    MacOs.config(app_name)
  else
    Linux.config(app_name)
  end
end