Module: Tachikoma

Defined in:
lib/tachikoma.rb,
lib/tachikoma/cli.rb,
lib/tachikoma/version.rb,
lib/tachikoma/settings.rb,
lib/tachikoma/exception.rb,
lib/tachikoma/application.rb

Overview

Settings of Tachikoma

Defined Under Namespace

Classes: Application, CLI, Exception

Constant Summary collapse

VERSION =
'4.2.7'

Class Method Summary collapse

Class Method Details

.data_pathObject

~/users-tachikoma-dir/data



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

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

.data_path=(data_path) ⇒ Object



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

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

.original_data_pathObject

/path/to/gem/tachikoma/data



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

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

.original_root_pathObject

/path/to/gem/tachikoma



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

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

.repos_pathObject

~/users-tachikoma-dir/repos



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

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

.repos_path=(repos_path) ⇒ Object



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

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

.root_pathObject

~/users-tachikoma-dir



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

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

.root_path=(root_path) ⇒ Object



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

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