Skip to content

Instantly share code, notes, and snippets.

@achambers
Created August 26, 2011 17:16
Show Gist options
  • Save achambers/1173894 to your computer and use it in GitHub Desktop.
Save achambers/1173894 to your computer and use it in GitHub Desktop.
Indextank Create Index
require 'indextank'
client = IndexTank::Client.new("http://my-indextank-api-url.api.indextank.com")
index = client.indexes("my_index_name")
index.add()
print "Waiting for index to be ready"
while not index.running?
print "."
STDOUT.flush
sleep 0.5
end
print "\\n"
STDOUT.flush
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment