Sha256: 22658c31eb23c23ec6a29887a546de5c71abfa8d4b69d37419ecf757b8d43052

Contents?: true

Size: 486 Bytes

Versions: 13

Compression:

Stored size: 486 Bytes

Contents

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

13 entries across 13 versions & 1 rubygems

Version Path
avrolution-0.6.1 lib/avrolution/rake/register_schemas_task.rb
avrolution-0.6.0 lib/avrolution/rake/register_schemas_task.rb
avrolution-0.5.0 lib/avrolution/rake/register_schemas_task.rb
avrolution-0.5.0.rc0 lib/avrolution/rake/register_schemas_task.rb
avrolution-0.4.4 lib/avrolution/rake/register_schemas_task.rb
avrolution-0.4.3 lib/avrolution/rake/register_schemas_task.rb
avrolution-0.4.2 lib/avrolution/rake/register_schemas_task.rb
avrolution-0.4.1 lib/avrolution/rake/register_schemas_task.rb
avrolution-0.4.1.rc0 lib/avrolution/rake/register_schemas_task.rb
avrolution-0.4.0 lib/avrolution/rake/register_schemas_task.rb
avrolution-0.4.0.rc1 lib/avrolution/rake/register_schemas_task.rb
avrolution-0.4.0.rc0 lib/avrolution/rake/register_schemas_task.rb
avrolution-0.3.0 lib/avrolution/rake/register_schemas_task.rb