Slide 29
Slide 29 text
$ cat config.yml
handlers:
- type: json
path: /path/to/itamae-log.json
$ itamae local -c config.yml recipe.rb
$ cat /tmp/itamae-log.json | head
{"time":"2015-12-08T15:47:55+09:00","event":"recipe_started",
"payload":{"path":"/Users/ryota-arai/src/github.com/ryotarai/itamae/tmp/recipe.rb"}}
{"time":"2015-12-08T15:47:55+09:00","event":"resource_started",
"payload":{"resource_type":"execute","resource_name":"echo included"}}
{"time":"2015-12-08T15:47:55+09:00","event":"action_started",
"payload":{"action":"run"}}
{"time":"2015-12-08T15:47:55+09:00","event":"attribute_changed",
"payload":{"from":{"executed":false},
"to":{"action":"run","command":"echo included","executed":true}}}