Class: KeyChain

Inherits:
Object
  • Object
show all
Defined in:
lib/keychain.rb

Overview

Class Method Summary collapse

Class Method Details

.find_internet_password(*args) ⇒ Object



8
9
10
11
12
# File 'lib/keychain.rb', line 8

def self.find_internet_password(*args)
  # -g: Display the password for the item found
  output = quiet args.unshift('find-internet-password', '-g') 
  output[/^password: "(.*)"$/, 1]
end

.method_missing(meth, *args) ⇒ Object



4
5
6
# File 'lib/keychain.rb', line 4

def self.method_missing(meth, *args)
  run args.unshift(meth)
end