lib/rimless/avro_utils.rb
def schema_path(src)
      # No trailing dot on the prefix namespace directory
      prefix = env.remove(/\.$/)
      # Calculate the destination path based on the source file
      Pathname.new(src.gsub(/^#{base_path}/, output_path.join(prefix).to_s)
                      .gsub(/\.erb$/, ''))
    end
# Return the compiled Avro schema file path for the given Avro schema
# template.
#
# @param src [String] the Avro schema template file path
# @return [Pathname] the resulting schema file path
Return the compiled Avro schema file path for the given Avro schema
template.
Return the compiled Avro schema file path for the given Avro schema template .
def schema_path(src)
      prefix = env.remove(/\.$/)
      Pathname.new(src.gsub(/^#{base_path}/, output_path.join(prefix).to_s)
                      .gsub(/\.erb$/, ''))
    end
def schema_path ( src ) prefix = env . remove ( / \. $ / ) Pathname . new ( src . gsub ( / ^ #{ base_path } / , output_path . join ( prefix ) . to_s ) . gsub ( / \. erb$ / , '' ) ) end
Return the compiled Avro schema file path for the given Avro schema
template.
Return the compiled Avro schema file path for the given Avro schema template .
# No trailing dot on the prefix namespace directory # Calculate the destination path based on the source file
the resulting schema file path
the resulting schema file path
Pathname
src
the Avro schema template file path
the Avro schema template file path