]> gitweb.fluxo.info Git - puppet-stdlib.git/commit
[MODULES-2462] Improve parseyaml function
authorDmitry Ilyin <dilyin@mirantis.com>
Mon, 24 Aug 2015 19:00:18 +0000 (22:00 +0300)
committerDmitry Ilyin <dilyin@mirantis.com>
Tue, 25 Aug 2015 18:41:03 +0000 (21:41 +0300)
commiteb948c4a0dc36790c5444fc236b0154c3d716c58
tree02357ac0aaebe45825bf6fffeb8f0cf9e883cab4
parentf820bb156038f638d8e488286d0c2b92c5636925
[MODULES-2462] Improve parseyaml function

* Add default value support
  Second argument will be returned if yaml cannot be parsed
  instead of false value
* Update tests
README.markdown
lib/puppet/parser/functions/parsejson.rb
lib/puppet/parser/functions/parseyaml.rb
spec/acceptance/parsejson_spec.rb
spec/acceptance/parseyaml_spec.rb
spec/functions/parsejson_spec.rb
spec/functions/parseyaml_spec.rb