- 리눅스 shyaml 설치
- /usr/local/bin/shyaml
확인
root@zetawiki:~# shyaml
shyaml: command not found
사전 작업
설치
root@zetawiki:~# pip install shyaml
... (생략)
Successfully installed pyyaml
Cleaning up...
확인 2
root@zetawiki:~# shyaml
Error: Bad number of arguments.
Usage:
shyaml (-h|--help)
shyaml ACTION KEY [DEFAULT]
테스트
root@zetawiki:~# wget https://hg.mozilla.org/projects/alder/raw-file/f186f43db1fd/testing/taskcluster/tasks/buildbot_bridge_build/linux32_firefox_debug.yml
... (생략)
Length: 378 [text/plain]
Saving to: ‘linux32_firefox_debug.yml’
100%[=============================>] 378 --.-K/s in 0s
2015-12-23 14:45:03 (76.4 MB/s) - ‘linux32_firefox_debug.yml’ saved [378/378]
root@zetawiki:~# cat linux32_firefox_debug.yml
$inherits:
from: 'tasks/buildbot_bridge_build.yml'
variables:
build_name: 'linux32_firefox'
build_type: 'debug'
task:
metadata:
name: 'Linux Debug Build'
description: 'Linux Debug Build'
payload:
buildername: 'Linux {{project}} leak test build'
extra:
treeherder:
machine:
platform: linux
collection:
debug: true
root@zetawiki:~# cat linux32_firefox_debug.yml | shyaml get-value task.metadata
description: Linux Debug Build
name: Linux Debug Build
root@zetawiki:~# cat linux32_firefox_debug.yml | shyaml get-value task.metadata.name
Linux Debug Build
같이 보기