File tree 7 files changed +11
-14
lines changed
7 files changed +11
-14
lines changed Original file line number Diff line number Diff line change @@ -98,7 +98,7 @@ def self.included(base)
98
98
Elasticsearch ::API ::TextStructure ,
99
99
Elasticsearch ::API ::Transform ,
100
100
Elasticsearch ::API ::Watcher ,
101
- Elasticsearch ::API ::Xpack
101
+ Elasticsearch ::API ::XPack
102
102
end
103
103
104
104
# The serializer class
Original file line number Diff line number Diff line change 17
17
18
18
module Elasticsearch
19
19
module API
20
- module Xpack
20
+ module XPack
21
21
module Actions
22
22
# Retrieves information about the installed X-Pack features.
23
23
#
Original file line number Diff line number Diff line change 17
17
18
18
module Elasticsearch
19
19
module API
20
- module Xpack
20
+ module XPack
21
21
module Actions
22
22
module ParamsRegistry
23
23
extend self
Original file line number Diff line number Diff line change 17
17
18
18
module Elasticsearch
19
19
module API
20
- module Xpack
20
+ module XPack
21
21
module Actions
22
22
# Retrieves usage information about the installed X-Pack features.
23
23
#
Original file line number Diff line number Diff line change 17
17
18
18
module Elasticsearch
19
19
module API
20
- module Xpack
20
+ module XPack
21
21
module Actions ; end
22
22
23
- # Client for the "xpack" namespace (includes the {Xpack ::Actions} methods)
23
+ # Client for the "xpack" namespace (includes the {XPack ::Actions} methods)
24
24
#
25
- class XpackClient
26
- include Common ::Client , Common ::Client ::Base , Xpack ::Actions
25
+ class XPackClient
26
+ include Common ::Client , Common ::Client ::Base , XPack ::Actions
27
27
end
28
28
29
- # Proxy method for {XpackClient }, available in the receiving object
29
+ # Proxy method for {XPackClient }, available in the receiving object
30
30
#
31
31
def xpack
32
- @xpack ||= XpackClient . new ( self )
32
+ @xpack ||= XPackClient . new ( self )
33
33
end
34
34
end
35
35
end
Original file line number Diff line number Diff line change @@ -78,7 +78,7 @@ def needs_complex_ignore_404?(endpoint)
78
78
def module_name_helper ( name )
79
79
return name . upcase if %w[ sql ssl ] . include? name
80
80
81
- name . split ( '_' ) . map ( &:capitalize ) . join
81
+ name . split ( '_' ) . map ( &:capitalize ) . map { | n | n == 'Xpack' ? 'XPack' : n } . join
82
82
end
83
83
84
84
def ping_perform_request
Original file line number Diff line number Diff line change 16
16
# under the License.
17
17
18
18
module Elasticsearch
19
- <%- if @current_api == :xpack -%>
20
- <%= ' '*(@namespace_depth) %> module XPack
21
- <%- end %>
22
19
<%= ' '*(@namespace_depth) %> module API
23
20
<%- @module_namespace.each_with_index do |name, i| -%>
24
21
<%= ' '*i %> module <%= module_name_helper(name) %>
You can’t perform that action at this time.
0 commit comments