Sha256: 75895526787a21573dc9616f60a634348041adff8591342ad938f83880413614
Contents?: true
Size: 518 Bytes
Versions: 4
Compression:
Stored size: 518 Bytes
Contents
# frozen_string_literal: true require 'avrolution/rake/base_task' module Avrolution module Rake class RegisterSchemasTask < BaseTask def initialize(**) super @name ||= :register_schemas @task_desc ||= 'Register the specified Avro JSON schemas' end private def perform raise 'schemas must be specified' if ENV['schemas'].blank? schemas = ENV['schemas'].split(',') Avrolution::RegisterSchemas.call(schemas) end end end end
Version data entries
4 entries across 4 versions & 1 rubygems