Sha256: 44011ca8988bbbee3361282fd4890683b09e0bd63576601dfac79aefa543b43a
Contents?: true
Size: 387 Bytes
Versions: 16
Compression:
Stored size: 387 Bytes
Contents
require 'fileutils' class Switcher def initialize(version) @version = version end def use current = get_current_dir FileUtils.rm(current) if File.exists?(current) unless @version == 'system' vims_dir = get_vims_dir(@version) abort "#{@version} is not installed." unless File.exists?(vims_dir) FileUtils.ln_s(vims_dir, current) end end end
Version data entries
16 entries across 16 versions & 1 rubygems