Junk

Junk Commit Details

Date:2016-08-22 08:38:07 (2 years 11 months ago)
Author:Nicola Fontana
Branch:master
Commit:7474d95c64947d3626e60cff2103a5b19523d0eb
Parents: 463cb09d7399dd19d277a14bee28c5659adf328c
Message:yaml-validator: first implementation

Provide a validator by leveraging a basic ruby installation. Kudo to
@Tombart:

http://stackoverflow.com/a/20420243
Changes:
Amisc/yaml-validator (full)

File differences

misc/yaml-validator
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh
die() {
[ -n "$1" ] && printf "$1\n" > /dev/stderr
cat <<EOT
Usage: $0 INFILE
Basic YAML validator.
EOT
exit 1
}
[ -z "$1" ] && die 'No input file specified'
ruby -e "require 'yaml';puts YAML.load_file('$0')"

Archive Download the corresponding diff file

Branches