Skip to content

Commit

Permalink
switched to backticks
Browse files Browse the repository at this point in the history
  • Loading branch information
Missy authored and Missy committed May 2, 2013
1 parent 9ea8a45 commit cf8e771
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion squirrel/replay.rb
Expand Up @@ -172,7 +172,8 @@ def execute_query(query, data)
data['new_start_time'] = Time.now.to_f * 1000 data['new_start_time'] = Time.now.to_f * 1000
#puts "curl -s -XGET #{Settings.host}:#{Settings.port}/#{data['index']}/_search/ -d '#{query}'" #puts "curl -s -XGET #{Settings.host}:#{Settings.port}/#{data['index']}/_search/ -d '#{query}'"
cmd = build_curl_command_string(query, data) cmd = build_curl_command_string(query, data)
curl_result = %x(#{cmd}) puts cmd
curl_result = `#{cmd}`
puts curl_result.inspect puts curl_result.inspect
#curl_result = `curl -s -XGET '#{@host}:#{@port}/#{data['index']}/_search/' -d '#{query}'` #curl_result = `curl -s -XGET '#{@host}:#{@port}/#{data['index']}/_search/' -d '#{query}'`
#data['new_end_time'] = Time.now.to_f * 1000 #data['new_end_time'] = Time.now.to_f * 1000
Expand Down

0 comments on commit cf8e771

Please sign in to comment.