Created
August 26, 2011 17:16
-
-
Save achambers/1173894 to your computer and use it in GitHub Desktop.
Indextank Create Index
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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