Class: Noiseless::Adapters::ClusterAPI

Inherits:
Object
  • Object
show all
Defined in:
lib/noiseless/adapters/cluster_api.rb

Overview

Cluster health API - needed for Rails healthcheck

Instance Method Summary collapse

Constructor Details

#initialize(adapter) ⇒ ClusterAPI

Returns a new instance of ClusterAPI.



7
8
9
# File 'lib/noiseless/adapters/cluster_api.rb', line 7

def initialize(adapter)
  @adapter = adapter
end

Instance Method Details

#healthObject



11
12
13
14
15
# File 'lib/noiseless/adapters/cluster_api.rb', line 11

def health(**)
  Sync do
    @adapter.send(:execute_cluster_health, **)
  end
end