]> gitweb.fluxo.info Git - puppet-stdlib.git/commit
Add a new function "try_get_value"
authorDmitry Ilyin <dilyin@mirantis.com>
Tue, 1 Sep 2015 18:39:16 +0000 (21:39 +0300)
committerDmitry Ilyin <dilyin@mirantis.com>
Tue, 1 Sep 2015 18:45:44 +0000 (21:45 +0300)
commit823a352f0f47d4481844bb6b6a6c00224ed556b8
treea8224d823ec61c69d6364dc2b65e4afa138a1590
parentf820bb156038f638d8e488286d0c2b92c5636925
Add a new function "try_get_value"

* Extracts a value from a deeply-nested data structure
* Returns default if a value could not be extracted
README.markdown
lib/puppet/parser/functions/try_get_value.rb [new file with mode: 0644]
spec/acceptance/try_get_value_spec.rb [new file with mode: 0755]
spec/functions/try_get_value_spec.rb [new file with mode: 0644]