Class: Elasticshell::Scopes::Cluster

Inherits:
Elasticshell::Scope show all
Defined in:
lib/elasticshell/scopes/cluster.rb

Constant Summary

Constants included from HasVerb

HasVerb::VERBS

Instance Attribute Summary

Attributes inherited from Elasticshell::Scope

#client, #last_refresh_at, #path, #scopes

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Elasticshell::Scope

#completing_scope_path_and_prefix, #completion_proc, #fetch_scopes, #initial_scopes, #refresh, #refresh!, #refreshed?, #request_names, #requests, #requests_matching, #reset!, #scopes_matching, #to_s

Methods included from HasVerb

#verb, #verb=

Constructor Details

#initialize(options = {}) ⇒ Cluster

Returns a new instance of Cluster.



7
8
9
# File 'lib/elasticshell/scopes/cluster.rb', line 7

def initialize options={}
  super("/_cluster", options)
end

Class Method Details

.requestsObject



11
12
13
14
15
16
17
18
19
20
# File 'lib/elasticshell/scopes/cluster.rb', line 11

def self.requests
  @requests = {
    "GET" => 
    {
      'health'  => "Retreive the health of the cluster.",
      'state'   => "Retreive the state of the cluster.",
      'settings'=> "Retreive the settings for the cluster.",
    }
  }
end

Instance Method Details

#exists?Boolean

Returns:

  • (Boolean)


22
23
24
# File 'lib/elasticshell/scopes/cluster.rb', line 22

def exists?
  true
end