From 5bcca1f9292183422502ca6be0c5343b5f2210ed Mon Sep 17 00:00:00 2001 From: hahwul Date: Mon, 15 Aug 2022 22:15:42 +0900 Subject: [PATCH] Migration script --- 1.rb | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 1.rb diff --git a/1.rb b/1.rb new file mode 100644 index 0000000..9e05ceb --- /dev/null +++ b/1.rb @@ -0,0 +1,12 @@ +require 'json' + +file = File.read('./data.json') +data_hash = JSON.parse(file) + +data_hash.each do | name, obj | + puts "filename: "+name+".yaml" + puts obj['Description'] + + # Make object + # Save file +end \ No newline at end of file