class Avrolution::Rake::RegisterSchemasTask
Public Class Methods
new(**)
click to toggle source
Calls superclass method
Avrolution::Rake::BaseTask::new
# File lib/avrolution/rake/register_schemas_task.rb, line 9 def initialize(**) super @name ||= :register_schemas @task_desc ||= 'Register the specified Avro JSON schemas' end
Private Instance Methods
perform()
click to toggle source
# File lib/avrolution/rake/register_schemas_task.rb, line 17 def perform raise 'schemas must be specified' if ENV['schemas'].blank? schemas = ENV['schemas'].split(',') Avrolution::RegisterSchemas.call(schemas) end