Class: Parabot::System
- Inherits:
-
Object
- Object
- Parabot::System
- Defined in:
- lib/parabot/system.rb
Constant Summary collapse
- PARABOT_DIR =
".parabot".freeze
Class Method Summary collapse
- .determine_config_path(relative_path) ⇒ Object
- .determine_path(filename, project_root) ⇒ Object
- .determine_system_path(filename, project_root) ⇒ Object
- .logger ⇒ Object
Class Method Details
.determine_config_path(relative_path) ⇒ Object
23 24 25 |
# File 'lib/parabot/system.rb', line 23 def determine_config_path(relative_path) File.join(__dir__, "../../config", relative_path) end |
.determine_path(filename, project_root) ⇒ Object
12 13 14 15 16 |
# File 'lib/parabot/system.rb', line 12 def determine_path(filename, project_root) return filename if Pathname.new(filename).absolute? File.join(project_root, filename) end |
.determine_system_path(filename, project_root) ⇒ Object
18 19 20 21 |
# File 'lib/parabot/system.rb', line 18 def determine_system_path(filename, project_root) ensure_parabot_directory_in(project_root) File.join(project_root, PARABOT_DIR, filename) end |
.logger ⇒ Object
8 9 10 |
# File 'lib/parabot/system.rb', line 8 def logger SemanticLogger["Parabot"] end |