Skip to content

Instantly share code, notes, and snippets.

Avatar

Sjors Provoost Sjors

View GitHub Profile
@jpmckinney
jpmckinney / keychain.rb
Created Nov 9, 2010
Access the OS X Keychain from Ruby
View keychain.rb
# blog post: http://blog.slashpoundbang.com/post/1521530410/accessing-the-os-x-keychain-from-ruby
class KeyChain
def self.method_missing(meth, *args)
run args.unshift(meth)
end
def self.find_internet_password(*args)
# -g: Display the password for the item found
output = quiet args.unshift('find-internet-password', '-g')
You can’t perform that action at this time.