lib/avrolution/configuration.rb in avrolution-0.3.0 vs lib/avrolution/configuration.rb in avrolution-0.4.0.rc0
- old
+ new
@@ -32,15 +32,17 @@
def self.compatibility_breaks_file
@compatibility_breaks_file ||= "#{root}/avro_compatibility_breaks.txt"
end
def self.compatibility_schema_registry_url
+ @compatibility_schema_registry_url = @compatibility_schema_registry_url.call if @compatibility_schema_registry_url.is_a?(Proc)
@compatibility_schema_registry_url ||= ENV.fetch(COMPATIBILITY_SCHEMA_REGISTRY_URL) do
raise 'compatibility_schema_registry_url must be set'
end
end
def self.deployment_schema_registry_url
+ @deployment_schema_registry_url = @deployment_schema_registry_url.call if @deployment_schema_registry_url.is_a?(Proc)
@deployment_schema_registry_url ||= ENV.fetch(DEPLOYMENT_SCHEMA_REGISTRY_URL) do
raise 'deployment_schema_registry_url must be set'
end
end