Module: Intent::Env
- Defined in:
- lib/intent/env.rb
Class Method Summary collapse
- .assets_dir ⇒ Object
- .computer_serial ⇒ Object
- .documents_dir ⇒ Object
- .inbox_dir ⇒ Object
- .projects_dir ⇒ Object
Class Method Details
.assets_dir ⇒ Object
11 12 13 |
# File 'lib/intent/env.rb', line 11 def self.assets_dir ENV['INTENT_ARCHIVE_DIR'] end |
.computer_serial ⇒ Object
19 20 21 22 23 24 |
# File 'lib/intent/env.rb', line 19 def self.computer_serial # macOS: `system_profiler SPHardwareDataType` # Win: `wmic bios get serialnumber` # Linux: `ls /sys/devices/virtual/dmi/id` ENV['INTENT_COMPUTER_SERIAL'] end |
.documents_dir ⇒ Object
3 4 5 |
# File 'lib/intent/env.rb', line 3 def self.documents_dir File.(ENV['INTENT_DOCUMENTS_DIR'] || "").to_s end |
.inbox_dir ⇒ Object
7 8 9 |
# File 'lib/intent/env.rb', line 7 def self.inbox_dir ENV['INTENT_INBOX_DIR'] end |
.projects_dir ⇒ Object
15 16 17 |
# File 'lib/intent/env.rb', line 15 def self.projects_dir ENV['INTENT_PROJECTS_DIR'] end |