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
-
.data_path ⇒ Object
~/users-tachikoma-dir/data.
- .data_path=(data_path) ⇒ Object
-
.original_data_path ⇒ Object
/path/to/gem/tachikoma/data.
-
.original_root_path ⇒ Object
/path/to/gem/tachikoma.
-
.repos_path ⇒ Object
~/users-tachikoma-dir/repos.
- .repos_path=(repos_path) ⇒ Object
-
.root_path ⇒ Object
~/users-tachikoma-dir.
- .root_path=(root_path) ⇒ Object
Class Method Details
.data_path ⇒ Object
~/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.(data_path) end |
.original_data_path ⇒ Object
/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_path ⇒ Object
/path/to/gem/tachikoma
34 35 36 |
# File 'lib/tachikoma/settings.rb', line 34 def original_root_path @original_root_path ||= Pathname.new File.(File.join(File.dirname(__FILE__), '..', '..')) end |
.repos_path ⇒ Object
~/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.(repos_path) end |
.root_path ⇒ Object
~/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.(root_path) end |