Module: Hackmac::Config
- Extended by:
- ComplexConfig::Provider::Shortcuts, FileUtils
- Defined in:
- lib/hackmac/config.rb
Constant Summary collapse
- DEFAULT =
<<~end --- devices: boot: name: EFI #backup: # name: BACKUP_EFI github: user: null access_token: null kext: efi_path: EFI/CLOVER/kexts/Other sources: AppleALC: github: 'acidanthera/AppleALC' IntelMausi: github: 'acidanthera/IntelMausi' Lilu: github: 'acidanthera/Lilu' USBInjectAll: github: 'Sniki/OS-X-USB-Inject-All' VirtualSMC: github: 'acidanthera/VirtualSMC' WhateverGreen: github: 'acidanthera/WhateverGreen' end
Class Method Summary collapse
Class Method Details
.load ⇒ Object
38 39 40 41 42 43 44 45 46 47 |
# File 'lib/hackmac/config.rb', line 38 def self.load path = File.('~/config') mkdir_p path ComplexConfig::Provider.config_dir = path config_path = File.join(path, 'hackmac.yml') unless File.exist?(config_path) File.secure_write(config_path, DEFAULT) end complex_config.hackmac end |