elasticsearch-extensions 0.0.10 → 0.0.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -94,6 +94,7 @@ module Elasticsearch
|
|
|
94
94
|
n += 1
|
|
95
95
|
pid = Process.spawn <<-COMMAND
|
|
96
96
|
#{arguments[:command]} \
|
|
97
|
+
-f \
|
|
97
98
|
-D es.foreground=yes \
|
|
98
99
|
-D es.cluster.name=#{arguments[:cluster_name]} \
|
|
99
100
|
-D es.node.name=#{arguments[:node_name]}-#{n} \
|
|
@@ -138,7 +139,7 @@ module Elasticsearch
|
|
|
138
139
|
def stop(arguments={})
|
|
139
140
|
arguments[:port] ||= (ENV['TEST_CLUSTER_PORT'] || 9250).to_i
|
|
140
141
|
|
|
141
|
-
nodes = JSON.parse(Net::HTTP.get(URI("http://localhost:#{arguments[:port]}/
|
|
142
|
+
nodes = JSON.parse(Net::HTTP.get(URI("http://localhost:#{arguments[:port]}/_nodes/?process"))) rescue nil
|
|
142
143
|
|
|
143
144
|
return false if nodes.nil? or nodes.empty?
|
|
144
145
|
|
|
@@ -236,7 +237,7 @@ module Elasticsearch
|
|
|
236
237
|
#
|
|
237
238
|
def __print_cluster_info(port)
|
|
238
239
|
health = JSON.parse(Net::HTTP.get(URI("http://localhost:#{port}/_cluster/health")))
|
|
239
|
-
nodes = JSON.parse(Net::HTTP.get(URI("http://localhost:#{port}/
|
|
240
|
+
nodes = JSON.parse(Net::HTTP.get(URI("http://localhost:#{port}/_nodes/?process")))
|
|
240
241
|
master = JSON.parse(Net::HTTP.get(URI("http://localhost:#{port}/_cluster/state")))['master_node']
|
|
241
242
|
|
|
242
243
|
puts "\n",
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: elasticsearch-extensions
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.11
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2014-01-
|
|
12
|
+
date: 2014-01-11 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: elasticsearch
|