Skip to content

Instantly share code, notes, and snippets.

@geofffranks
Created January 27, 2018 13:20
Show Gist options
  • Save geofffranks/78fead76f3ab67c0b350054d1ee61ccd to your computer and use it in GitHub Desktop.
Save geofffranks/78fead76f3ab67c0b350054d1ee61ccd to your computer and use it in GitHub Desktop.
a bit o' spruce, from http://play.spruce.cf
{"flavor":"1.14.0","prune":["meta"],"env":["HOME=/home/user"],"cherry_pick":[],"yaml":[{"filename":"file1.yml","contents":"---\nspruce-1-14:\n days: 3\n hours: (( calc \"3 * 24\" ))\n minutes: (( calc \"3 * 24 * 60\" ))\n \nhopeful:\n days: 3\n hours_expr: (( concat hopeful.days \" * 24\" ))\n hours: (( calc hopeful.hours_expr ))\n minutes_expr: (( concat hopeful.days \" * 24 * 60\" ))\n minutes: (( calc minutes_expr ))\n \nideal:\n days: 3\n hours: (( calc ideal.days * 24 ))\n minutes: (( calc ideal.hours * 60 ))\n\nacceptable:\n days: 3\n # note the lack of a space before the '*' operator\n hours: (( calc acceptable.days \"* 24\" ))\n minute: (( calc acceptable.hours \"* 60\" ))\n"}],"skip_eval":false,"fallback_append":false,"go_patch":false,"debug":false,"trace":false}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment