summaryrefslogtreecommitdiff
path: root/bin/get-pgp-keyid
diff options
context:
space:
mode:
Diffstat (limited to 'bin/get-pgp-keyid')
-rwxr-xr-xbin/get-pgp-keyid9
1 files changed, 9 insertions, 0 deletions
diff --git a/bin/get-pgp-keyid b/bin/get-pgp-keyid
new file mode 100755
index 0000000..3aec3a1
--- /dev/null
+++ b/bin/get-pgp-keyid
@@ -0,0 +1,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"]