0.0
The project is in a healthy, maintained state
maps yaml to yaml with ruby code
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies
 Project Readme

dorian-yaml-map

Map YAML to YAML with a Ruby snippet.

Install

gem install dorian-yaml-map

Also included in the aggregate gem:

gem install dorian

Usage

yaml-map [file ...] "ruby code"

Run yaml-map -h for generated option details and yaml-map -v for the installed version.

Notes

  • Arrays map each element. Hashes map each [key, value] pair. The final YAML is printed.

Examples

Increment array items

printf -- '- 1\n- 2\n' | yaml-map "it += 1"