Module: Hackmac::Config
- Extended by:
- ComplexConfig::Provider::Shortcuts, FileUtils
- Defined in:
- lib/hackmac/config.rb
Constant Summary collapse
- DEFAULT =
<<~end --- efi: source: 'https://github.com/flori/EFI-some.git' usb: os: '/Applications/Install macOS Mojave.app' devices: main: 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' plugins: - SMCProcessor - SMCSuperIO WhateverGreen: github: 'acidanthera/WhateverGreen' end
Class Method Summary collapse
Class Method Details
.load ⇒ Object
44 45 46 47 48 49 50 51 52 53 |
# File 'lib/hackmac/config.rb', line 44 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 |