Sha256: 53b63b403c92a41ac56277ba8340277048b69c0860da6e0351d2ad3e1b362a61
Contents?: true
Size: 1.27 KB
Versions: 5
Compression:
Stored size: 1.27 KB
Contents
require 'complex_config/shortcuts' require 'tins/xt/secure_write' require 'fileutils' module Hackmac module Config extend FileUtils extend ComplexConfig::Provider::Shortcuts 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' WhateverGreen: github: 'acidanthera/WhateverGreen' end def self.load path = File.expand_path('~/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 end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
hackmac-0.4.0 | lib/hackmac/config.rb |
hackmac-0.3.4 | lib/hackmac/config.rb |
hackmac-0.3.3 | lib/hackmac/config.rb |
hackmac-0.3.2 | lib/hackmac/config.rb |
hackmac-0.3.1 | lib/hackmac/config.rb |