Sha256: c9b795b285f1d040acb6103cebc5504efa8a3fa38725743cd4699db276bd2a59

Contents?: true

Size: 792 Bytes

Versions: 2

Compression:

Stored size: 792 Bytes

Contents

module Accesser
  attr_writer :dot_dir

  module_function

  def get_dot_dir
    return File.expand_path(@dot_dir || '~/.vvm-rb')
  end

  def get_etc_dir
    return File.join(get_dot_dir, 'etc')
  end

  def get_repos_dir
    return File.join(get_dot_dir, 'repos')
  end

  def get_src_dir(version = '')
    return File.join(get_dot_dir, 'src', version)
  end

  def get_vims_dir(version = '')
    return File.join(get_dot_dir, 'vims', version)
  end

  def get_vimorg_dir
    return File.join(get_repos_dir, 'vimorg')
  end

  def get_login_file
    return File.join(get_etc_dir, 'login')
  end

  def get_current_dir
    return File.join(get_vims_dir, 'current')
  end

  def get_cache_dir
    return File.expand_path(File.join(File.dirname(__FILE__), '..', '..', '.vvm_cache'))
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
vvm-rb-0.0.5 lib/vvm-rb/accesser.rb
vvm-rb-0.0.4 lib/vvm-rb/accesser.rb