Module: Hackmac::Config
- Extended by:
- ComplexConfig::Provider::Shortcuts, FileUtils
- Defined in:
- lib/hackmac/config.rb
Constant Summary collapse
- DEFAULT =
"---\nefi:\n source: 'https://github.com/flori/EFI-some.git'\nusb:\n os: '/Applications/Install macOS Mojave.app'\ndevices:\n main:\n name: EFI\n #backup:\n # name: BACKUP_EFI\ngithub:\n user: null\n access_token: null\nkext:\n efi_path: EFI/CLOVER/kexts/Other\n sources:\n AppleALC:\n github: 'acidanthera/AppleALC'\n IntelMausi:\n github: 'acidanthera/IntelMausi'\n Lilu:\n github: 'acidanthera/Lilu'\n USBInjectAll:\n github: 'Sniki/OS-X-USB-Inject-All'\n VirtualSMC:\n github: 'acidanthera/VirtualSMC'\n WhateverGreen:\n github: 'acidanthera/WhateverGreen'\n\n"
Class Method Summary collapse
Class Method Details
.load ⇒ Object
42 43 44 45 46 47 48 49 50 51 |
# File 'lib/hackmac/config.rb', line 42 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 |