Class: VPNMaker::KeyConfig

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

Instance Method Summary collapse

Constructor Details

#initialize(path) ⇒ KeyConfig

Returns a new instance of KeyConfig.



3
4
5
# File 'lib/vpnmaker/key_config.rb', line 3

def initialize(path)
  @config = YAML.load_file(path)
end

Instance Method Details

#[](k) ⇒ Object



7
# File 'lib/vpnmaker/key_config.rb', line 7

def [](k); @config[k]; end