Sha256: cdaff1fcd2c25e776d3fe86bd80925dc54a416477001dd587dc0a091a5594853

Contents?: true

Size: 626 Bytes

Versions: 15

Compression:

Stored size: 626 Bytes

Contents

require 'avrolution/rake/base_task'

module Avrolution
  module Rake
    class CheckCompatibilityTask < BaseTask

      def initialize(*)
        super
        @name ||= :check_compatibility
        @task_desc ||= 'Check that all Avro schemas are compatible with latest registered in production'
      end

      private

      def perform
        check = Avrolution::CompatibilityCheck.new.call
        if check.success?
          puts 'All schemas are compatible!'
        else
          puts "\nIncompatible schemas found: #{check.incompatible_schemas.join(', ')}"
          exit(1)
        end
      end
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

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