Method: Libriciel::GetConfig.wd_conf_to_json
- Defined in:
- lib/libriciel.rb
.wd_conf_to_json(line, tableau) ⇒ Object
Fonction permettant de parser les fichiers de conf webdelib en json
739 740 741 742 743 744 745 746 |
# File 'lib/libriciel.rb', line 739 def self.wd_conf_to_json(line, tableau) tmp_clean = line.gsub(/Configure::write\(/, "").gsub(/\);/, "") array_properties_value = tmp_clean.split(/[, \n]+/) tableau[array_properties_value[0]] = array_properties_value[1] return tableau end |