lib/avrolution/configuration.rb in avrolution-0.4.0.rc1 vs lib/avrolution/configuration.rb in avrolution-0.4.0
- old
+ new
@@ -1,7 +1,10 @@
module Avrolution
+ COMPATIBILITY = 'compatibility'.freeze
+ DEPLOYMENT = 'deployment'.freeze
+
class << self
# Root directory to search for schemas, and default location for
# compatibility breaks file
attr_writer :root
@@ -45,14 +48,14 @@
def self.compatibility_breaks_file
@compatibility_breaks_file ||= "#{root}/avro_compatibility_breaks.txt"
end
def self.compatibility_schema_registry_url
- fetch_url('compatibility')
+ fetch_url(COMPATIBILITY)
end
def self.deployment_schema_registry_url
- fetch_url('deployment')
+ fetch_url(DEPLOYMENT)
end
def self.configure
yield self
end