Method: VScripts::Config#parse

Defined in:
lib/vscripts/config.rb

#parse(file) ⇒ Hash

Parses the configuration

Parameters:

  • file (String)

    the path to the configuration file

Returns:

  • (Hash)

    the configuration hash



36
37
38
# File 'lib/vscripts/config.rb', line 36

def parse(file)
  YAML.load(read(file)) if check_config(file)
end