lib/evertils/router.rb in evertils-2.2.4 vs lib/evertils/router.rb in evertils-2.3.0
- old
+ new
@@ -80,21 +80,21 @@
def overwrite_controller_with(new_controller)
@request.controller = new_controller
end
# checks output of gpg --list-keys for the presence of a specific GPG key
- def verify_gpgKey
+ def verify_gpg_key
# TODO: replace with Open3
- res = system("gpg --list-keys #{@config.get(:required, :gpgKey)} 2>/dev/null >/dev/null")
+ res = system("gpg --list-keys #{@config.get(:required, :gpg_key)} 2>/dev/null >/dev/null")
raise GpgException unless res
res
end
# checks output of ykman list to determine if the correct key is inserted
- def verify_yubikeySerial
+ def verify_yubikey_serial
# TODO: replace with Open3
- res = system("ykman list | grep #{@config.get(:required, :yubikeySerial)} 2>/dev/null >/dev/null")
+ res = system("ykman list | grep #{@config.get(:required, :yubikey_serial)} 2>/dev/null >/dev/null")
raise YubikeyException unless res
res
end
end