Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
if [ $# -eq 0 ]
then
echo "Please provide an ERB file as argument eg $0 file.erb"
exit 1
fi
erb -P -x -T '-' $1 | ruby -c
@xiii
xiii / ruby-yaml-validate.sh
Last active April 20, 2020 06:10
Validate YAML in ruby - useful for hiera
#!/bin/bash
#
# Efstathios Xagoraris <sxagoraris@gmail.com>
# Validate YAML files using ruby
#
if [ $# -eq 0 ]
then