Module: Tachikoma

Defined in:
lib/tachikoma.rb,
lib/tachikoma/version.rb,
lib/tachikoma/settings.rb

Constant Summary collapse

VERSION =
"3.0.6"

Class Method Summary collapse

Class Method Details

.data_pathObject

~/users-tachikoma-dir/data



15
16
17
# File 'lib/tachikoma/settings.rb', line 15

def data_path
  @data_path ||= root_path.join('data')
end

.data_path=(data_path) ⇒ Object



19
20
21
# File 'lib/tachikoma/settings.rb', line 19

def data_path=(data_path)
  @data_path = Pathname.new File.expand_path(data_path)
end

.original_data_pathObject

/path/to/gem/tachikoma/data



38
39
40
# File 'lib/tachikoma/settings.rb', line 38

def original_data_path
  @original_data_path ||= original_root_path.join('data')
end

.original_root_pathObject

/path/to/gem/tachikoma



33
34
35
# File 'lib/tachikoma/settings.rb', line 33

def original_root_path
  @original_root_path ||= Pathname.new File.expand_path(File.join(File.dirname(__FILE__), '..', '..'))
end

.repos_pathObject

~/users-tachikoma-dir/repos



24
25
26
# File 'lib/tachikoma/settings.rb', line 24

def repos_path
  @repos_path ||= root_path.join('repos')
end

.repos_path=(repos_path) ⇒ Object



28
29
30
# File 'lib/tachikoma/settings.rb', line 28

def repos_path=(repos_path)
  @repos_path = Pathname.new File.expand_path(repos_path)
end

.root_pathObject

~/users-tachikoma-dir



6
7
8
# File 'lib/tachikoma/settings.rb', line 6

def root_path
  @root_path ||= Pathname.new Dir.pwd
end

.root_path=(root_path) ⇒ Object



10
11
12
# File 'lib/tachikoma/settings.rb', line 10

def root_path=(root_path)
  @root_path = Pathname.new File.expand_path(root_path)
end