summaryrefslogtreecommitdiff
path: root/bin/get-pgp-keyid
blob: 3aec3a104f1ba45f2c6fd8bb4a544c33117aafbb (plain)
1
2
3
4
5
6
7
8
9
#!/usr/bin/env ruby
# Usage: get-keyid {username}
cfg_hackers="hackers.yml"

######################################################################

require 'yaml'

puts YAML::load(open(cfg_hackers)).find{|u|u["username"] == ARGV[0]}["pgp_keyid"]