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: 'OSX_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' debug: false plugins: - SMCProcessor - SMCSuperIO BrcmPatchRAM2: download: name: 'BrcmPatchRAM' version: '2.2.10' url: 'https://bitbucket.org/RehabMan/os-x-brcmpatchram/downloads/RehabMan-BrcmPatchRAM-2018-0505.zip' plugins: - BrcmFirmwareData WhateverGreen: github: 'acidanthera/WhateverGreen' end
Class Method Summary collapse
Class Method Details
.load ⇒ Object
52 53 54 55 56 57 58 59 60 61 |
# File 'lib/hackmac/config.rb', line 52 def self.load path = File.('~/.config/hackmac') 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 |