File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed
elasticsearch-api/utils/thor Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -64,6 +64,12 @@ def needs_complex_ignore_404?(endpoint)
64
64
COMPLEX_IGNORE_404 . include? endpoint
65
65
end
66
66
67
+ def module_name_helper ( name )
68
+ return name . upcase if %w[ sql ssl ] . include? name
69
+
70
+ name . split ( "_" ) . map ( &:capitalize ) . join
71
+ end
72
+
67
73
def termvectors_path
68
74
<<~SRC
69
75
if _index && _type && _id
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ module Elasticsearch
8
8
<%- end %>
9
9
<%= ' '*(@namespace_depth) %> module API
10
10
<%- @module_namespace.each_with_index do |name, i| -%>
11
- <%= ' '*i %> module <%= name.split("_").map(&:capitalize).join %>
11
+ <%= ' '*i %> module <%= module_name_helper(name) %>
12
12
<%- end -%>
13
13
<%= ' '*(@namespace_depth+2) %> module Actions
14
14
<%= ERB.new(File.new("./thor/templates/_documentation_top.erb").read, trim_mode: '-').result(binding) -%>
You can’t perform that action at this time.
0 commit comments