Class: Elasticshell::Scopes::Cluster
- Inherits:
-
Elasticshell::Scope
- Object
- Elasticshell::Scope
- Elasticshell::Scopes::Cluster
- Defined in:
- lib/elasticshell/scopes/cluster.rb
Constant Summary
Constants included from HasVerb
Instance Attribute Summary
Attributes inherited from Elasticshell::Scope
#client, #last_refresh_at, #path, #scopes
Class Method Summary collapse
Instance Method Summary collapse
- #exists? ⇒ Boolean
-
#initialize(options = {}) ⇒ Cluster
constructor
A new instance of Cluster.
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
Constructor Details
#initialize(options = {}) ⇒ Cluster
Returns a new instance of Cluster.
7 8 9 |
# File 'lib/elasticshell/scopes/cluster.rb', line 7 def initialize ={} super("/_cluster", ) end |
Class Method Details
.requests ⇒ Object
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
22 23 24 |
# File 'lib/elasticshell/scopes/cluster.rb', line 22 def exists? true end |