From: Nicolas Boisselier Date: Sun, 22 Mar 2015 02:57:27 +0000 (+0000) Subject: puppet2yaml X-Git-Url: https://git.nbdom.net/?a=commitdiff_plain;h=5ce828d0b9d88ce2c27d93c090808c69aef46ead;p=nb.git puppet2yaml --- diff --git a/etc/bashrc.function b/etc/bashrc.function index 19680b02..22748421 100644 --- a/etc/bashrc.function +++ b/etc/bashrc.function @@ -219,11 +219,11 @@ yaml2perl() { puppet2yaml() { perl -pe ' +s/^(.*)\{(.*?:)\s*/$1:\n $2\n/; s/\s*=>\s*/: /; s/,\s*/\n/; -s/^.*\{(.*?:)\s*/$1\n/; s/\s*\}\s*//; -' +' $@ } nb-rb() {