[UTIL] Fixed whitespace in Ruby template for code generator
This commit is contained in:
parent
68d3beb8c3
commit
7bf106ede6
|
@ -31,7 +31,9 @@ module Elasticsearch
|
||||||
<%- @spec['url']['parts'].select { |name, info| info['required'] }.each do |name, info| -%>
|
<%- @spec['url']['parts'].select { |name, info| info['required'] }.each do |name, info| -%>
|
||||||
<%= ' '*(@namespace_depth+1) + "raise ArgumentError, \"Required argument '#{name}' missing\" unless arguments[:#{name}]" + "\n" -%>
|
<%= ' '*(@namespace_depth+1) + "raise ArgumentError, \"Required argument '#{name}' missing\" unless arguments[:#{name}]" + "\n" -%>
|
||||||
<%- end -%>
|
<%- end -%>
|
||||||
<%= ' '*(@namespace_depth+1) + "raise ArgumentError, \"Required argument 'body' missing\" unless arguments[:body]" + "\n" if @spec['body'] && @spec['body']['required'] -%>
|
<%- if @spec['body'] && @spec['body']['required'] -%>
|
||||||
|
<%= ' '*(@namespace_depth+1) + "raise ArgumentError, \"Required argument 'body' missing\" unless arguments[:body]" + "\n" -%>
|
||||||
|
<%- end -%>
|
||||||
<%# Method, path, params, body -%>
|
<%# Method, path, params, body -%>
|
||||||
<%= ' '*@namespace_depth %> method = '<%= @spec['methods'].first %>'
|
<%= ' '*@namespace_depth %> method = '<%= @spec['methods'].first %>'
|
||||||
<%- unless @spec['url']['parts'].empty? -%>
|
<%- unless @spec['url']['parts'].empty? -%>
|
||||||
|
|
Loading…
Reference in New Issue