Method: VPNMaker::KeyDB#initialize

Defined in:
lib/vpnmaker/key_db.rb

#initialize(path) ⇒ KeyDB

Returns a new instance of KeyDB.



3
4
5
6
7
# File 'lib/vpnmaker/key_db.rb', line 3

def initialize(path)
  @path = path
  @db = File.exists?(path) ? YAML.load_file(path) : {}
  @touched = false
end