Sha256: 7820a72b2014bd1f5d2b96867a446bff42782cbdc7445ed95ecc3609087de91c
Contents?: true
Size: 790 Bytes
Versions: 1
Compression:
Stored size: 790 Bytes
Contents
require 'rflow/components/raw/extensions' class RFlow module Components module Raw # Load the schemas SCHEMA_DIRECTORY = ::File.expand_path(::File.join(::File.dirname(__FILE__), '..', '..', '..', 'schema')) SCHEMA_FILES = { 'raw.avsc' => 'RFlow::Message::Data::Raw', } SCHEMA_FILES.each do |file_name, data_type_name| schema_string = ::File.read(::File.join(SCHEMA_DIRECTORY, file_name)) RFlow::Configuration.add_available_data_type data_type_name, 'avro', schema_string end # Load the data extensions RFlow::Configuration.add_available_data_extension('RFlow::Message::Data::Raw', RFlow::Components::Raw::Extensions::RawExtension) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rflow-1.0.0a1 | lib/rflow/components/raw.rb |