diff options
author | Kazuhiro NISHIYAMA <zn@mbf.nifty.com> | 2019-10-07 19:33:33 +0900 |
---|---|---|
committer | Kazuhiro NISHIYAMA <zn@mbf.nifty.com> | 2019-10-07 19:33:33 +0900 |
commit | 3374e1450c18c33420f616f41ad7f884fdb4df21 (patch) | |
tree | 3d72222f4ec1aa851a636d009abab3c1e52cd23a /tool/make-snapshot | |
parent | 96753e8475ee69537134ab3d966c3d25cb5c467c (diff) |
Write yaml and json under destdir and print to stdout
Diffstat (limited to 'tool/make-snapshot')
-rwxr-xr-x | tool/make-snapshot | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/tool/make-snapshot b/tool/make-snapshot index ecc3cd53d2..666fd1da84 100755 --- a/tool/make-snapshot +++ b/tool/make-snapshot @@ -628,8 +628,16 @@ revisions.collect {|rev| package(vcs, rev, destdir, tmp)}.flatten.each do |name| end end -File.write('info.yml', info.values.to_yaml) -File.write('info.json', info.values.to_json) +yaml = info.values.to_yaml +json = info.values.to_json +puts "#{$colorize.pass('JSON:')}" +puts yaml +puts "#{$colorize.pass('YAML:')}" +puts json +infodir = Pathname(destdir) + 'info' +infodir.mkpath +(infodir+'info.yml').write(yaml) +(infodir+'info.json').write(json) exit false if !success |