Class: EsHttpOperation::CreateIndex

Inherits:
EsHttpOperation show all
Defined in:
lib/wukong-migrate/elasticsearch_operations.rb

Instance Method Summary collapse

Methods inherited from EsHttpOperation

#call_own_http_method, #configure_with, #execute, #json_body, #raw_curl_string

Instance Method Details

#bodyObject



36
# File 'lib/wukong-migrate/elasticsearch_operations.rb', line 36

def body() { settings: settings }.compact_blank ; end

#infoObject



38
# File 'lib/wukong-migrate/elasticsearch_operations.rb', line 38

def info() "Creating index #{index}"            ; end

#pathObject



35
# File 'lib/wukong-migrate/elasticsearch_operations.rb', line 35

def path() File.join('', index, '')             ; end

#verbObject



37
# File 'lib/wukong-migrate/elasticsearch_operations.rb', line 37

def verb() :put                                 ; end