Method: Pik::Run#switch_gem_home_to

Defined in:
lib/pik/commands/run_command.rb

#switch_gem_home_to(gem_home) ⇒ Object



64
65
66
67
68
# File 'lib/pik/commands/run_command.rb', line 64

def switch_gem_home_to(gem_home)
  gem_home = Pathname(gem_home).to_windows rescue nil
  ENV['GEM_PATH'] = gem_home
  ENV['GEM_HOME'] = gem_home
end