Module: ActiveEs::Schema::Control

Extended by:
ActiveSupport::Concern
Included in:
ActiveEs::Schema
Defined in:
lib/active_es/schema/control.rb

Instance Method Summary collapse

Instance Method Details

#healthy?Boolean

Returns:

  • (Boolean)


6
7
8
9
# File 'lib/active_es/schema/control.rb', line 6

def healthy?
  status = client.cluster.health["status"]
  status == "green"
end