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