Module: Accesser

Included in:
VvmRb
Defined in:
lib/vvm-rb/accesser.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#dot_dir=(value) ⇒ Object (writeonly)

Sets the attribute dot_dir

Parameters:

  • value

    the value to set the attribute dot_dir to.



2
3
4
# File 'lib/vvm-rb/accesser.rb', line 2

def dot_dir=(value)
  @dot_dir = value
end

Class Method Details

.get_cache_dirObject



38
39
40
# File 'lib/vvm-rb/accesser.rb', line 38

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

.get_current_dirObject



34
35
36
# File 'lib/vvm-rb/accesser.rb', line 34

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

.get_dot_dirObject



6
7
8
# File 'lib/vvm-rb/accesser.rb', line 6

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

.get_etc_dirObject



10
11
12
# File 'lib/vvm-rb/accesser.rb', line 10

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

.get_login_fileObject



30
31
32
# File 'lib/vvm-rb/accesser.rb', line 30

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

.get_repos_dirObject



14
15
16
# File 'lib/vvm-rb/accesser.rb', line 14

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

.get_src_dir(version = '') ⇒ Object



18
19
20
# File 'lib/vvm-rb/accesser.rb', line 18

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

.get_vimorg_dirObject



26
27
28
# File 'lib/vvm-rb/accesser.rb', line 26

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

.get_vims_dir(version = '') ⇒ Object



22
23
24
# File 'lib/vvm-rb/accesser.rb', line 22

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