Bryan Duxbury | d815c21 | 2009-03-19 18:57:43 +0000 | [diff] [blame] | 1 | require "spec/spec_helper" |
2 | require "lib/thrift/serializer" | ||||
3 | |||||
4 | path, factory_class = ARGV | ||||
5 | |||||
6 | factory = eval(factory_class).new | ||||
7 | |||||
8 | ser = Thrift::Serializer.new(factory) | ||||
9 | |||||
10 | File.open(path, "w") do |file| | ||||
11 | file.write(ser.serialize(Fixtures::COMPACT_PROTOCOL_TEST_STRUCT)) | ||||
12 | end |