Class: ES::Diag::CLI

Inherits:
Thor
  • Object
show all
Defined in:
lib/es-diag/cli.rb

Instance Method Summary collapse

Instance Method Details

#status(cluster_node = nil) ⇒ Object



9
10
11
12
13
14
# File 'lib/es-diag/cli.rb', line 9

def status(cluster_node=nil)
  info "Checking..."
  ES::Diag::Config['es_local_node'] = cluster_node
  c = ES::Diag::Check.new(self)
  c.all_checks
end