Class: Elasticshell::Scopes::Nodes

Inherits:
Elasticshell::Scope show all
Defined in:
lib/elasticshell/scopes/nodes.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 = {}) ⇒ Nodes

Returns a new instance of Nodes.



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

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

Class Method Details

.requestsObject



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

def self.requests
  @requests ||= {
    "GET" => {
      'info'  => "Retreive info about the cluster's nodes.",
      'stats' => "Retreive stats for the cluter's nodes.",
    }
  }
end

Instance Method Details

#exists?Boolean

Returns:

  • (Boolean)


20
21
22
# File 'lib/elasticshell/scopes/nodes.rb', line 20

def exists?
  true
end