Method: Gem::Micro::Config.gem_home

Defined in:
lib/microgem/config.rb

.gem_homeObject

Returns the full path to the Gem home directory.



10
11
12
13
14
15
16
17
18
# File 'lib/microgem/config.rb', line 10

def gem_home
  @gem_home ||= ensure_dir(if ENV['PRODUCTION']
    sitelibdir = ::Config::CONFIG['sitelibdir']
    version = ::Config::CONFIG['ruby_version']
    File.expand_path("../../Gems/#{version}", sitelibdir)
  else
    File.expand_path("../../../tmp/gem_home", __FILE__)
  end)
end