summaryrefslogtreecommitdiff
path: root/tool
diff options
context:
space:
mode:
authorKazuhiro NISHIYAMA <zn@mbf.nifty.com>2019-10-07 19:33:33 +0900
committerKazuhiro NISHIYAMA <zn@mbf.nifty.com>2019-10-07 19:33:33 +0900
commit3374e1450c18c33420f616f41ad7f884fdb4df21 (patch)
tree3d72222f4ec1aa851a636d009abab3c1e52cd23a /tool
parent96753e8475ee69537134ab3d966c3d25cb5c467c (diff)
Write yaml and json under destdir and print to stdout
Diffstat (limited to 'tool')
-rwxr-xr-xtool/make-snapshot12
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