Sha256: 742f98dc470c5781c2fa463bb8e0c6978a8748ce9429200af4d72fad287a83a4
Contents?: true
Size: 340 Bytes
Versions: 7
Compression:
Stored size: 340 Bytes
Contents
namespace :codes do desc 'Convert code systems from XML to JSON' task :convert, [:file] do |t, args| f = args.file codes_to_json = HQMF2JS::Generator::CodesToJson.new(f) Dir.mkdir('tmp') unless Dir.exists?('tmp') File.open('tmp/codes.js', 'w+') do |js_file| js_file.write codes_to_json.json end end end
Version data entries
7 entries across 7 versions & 1 rubygems