File: Rookbook.yaml

package info (click to toggle)
kwalify 0.7.2-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd, wheezy
  • size: 1,860 kB
  • ctags: 1,188
  • sloc: ruby: 8,446; xml: 170; makefile: 37; java: 36
file content (10 lines) | stat: -rw-r--r-- 388 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10

recipes:

  - product:	:diff
    ingreds:	[ test-parser-yaml.yaml, test-yaml-parser.yaml ]
    byprods:	[ hoge.yaml, hoge.diff ]
    method*: |
	sys "ruby -e 's=ARGF.read(); print s.gsub(/^locations:.*?(?=^\\S)/m,\"\").gsub(/Kwalify::SyntaxError/,\"Kwalify::YamlSyntaxError\")' #{@ingreds[0]} > #{@byprods[0]}"
	sys! "diff -U5 hoge.yaml #{@ingreds[1]} | tee #{@byprods[1]}"
	rm @byprods