Module: Intent::Env

Defined in:
lib/intent/env.rb

Class Method Summary collapse

Class Method Details

.assets_dirObject



11
12
13
# File 'lib/intent/env.rb', line 11

def self.assets_dir
  ENV['INTENT_ARCHIVE_DIR']
end

.computer_serialObject



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_dirObject



3
4
5
# File 'lib/intent/env.rb', line 3

def self.documents_dir
  File.expand_path(ENV['INTENT_DOCUMENTS_DIR'] || "").to_s
end

.inbox_dirObject



7
8
9
# File 'lib/intent/env.rb', line 7

def self.inbox_dir
  ENV['INTENT_INBOX_DIR']
end

.projects_dirObject



15
16
17
# File 'lib/intent/env.rb', line 15

def self.projects_dir
  ENV['INTENT_PROJECTS_DIR']
end