Module: Textus::Layout
- Defined in:
- lib/textus/layout.rb
Overview
Single source of truth for every path textus owns under a store root. All disposable runtime state nests under <root>/.run/ so the tracked/disposable boundary is a directory boundary. ADR 0038.
Constant Summary collapse
- RUN =
".run"- GITIGNORE =
<<~GITIGNORE # textus runtime artifacts — safe to delete, never commit #{RUN}/ GITIGNORE
Class Method Summary collapse
- .audit_dir(root) ⇒ Object
- .audit_log(root) ⇒ Object
- .build_lock(root) ⇒ Object
- .cursor(root, role) ⇒ Object
- .locks(root) ⇒ Object
- .run(root) ⇒ Object
- .state(root) ⇒ Object
Class Method Details
.audit_dir(root) ⇒ Object
28 29 30 |
# File 'lib/textus/layout.rb', line 28 def self.audit_dir(root) File.join(run(root), "audit") end |
.audit_log(root) ⇒ Object
32 33 34 |
# File 'lib/textus/layout.rb', line 32 def self.audit_log(root) File.join(audit_dir(root), "audit.log") end |
.build_lock(root) ⇒ Object
24 25 26 |
# File 'lib/textus/layout.rb', line 24 def self.build_lock(root) File.join(run(root), "build.lock") end |
.cursor(root, role) ⇒ Object
16 17 18 |
# File 'lib/textus/layout.rb', line 16 def self.cursor(root, role) File.join(state(root), "cursor.#{role}") end |
.locks(root) ⇒ Object
20 21 22 |
# File 'lib/textus/layout.rb', line 20 def self.locks(root) File.join(run(root), "locks") end |