elasticsearch-extensions 0.0.10 → 0.0.11

Sign up to get free protection for your applications and to get access to all the features.
@@ -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]}/_cluster/nodes/?process"))) rescue nil
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}/_cluster/nodes/?process")))
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",
@@ -1,5 +1,5 @@
1
1
  module Elasticsearch
2
2
  module Extensions
3
- VERSION = "0.0.10"
3
+ VERSION = "0.0.11"
4
4
  end
5
5
  end
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.10
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-08 00:00:00.000000000 Z
12
+ date: 2014-01-11 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: elasticsearch