Class: Anycable::Config

Inherits:
Anyway::Config
  • Object
show all
Defined in:
lib/anycable/config.rb

Overview

Anycable configuration.

Instance Method Summary collapse

Constructor Details

#initializeConfig

Returns a new instance of Config.



20
21
22
23
24
25
26
# File 'lib/anycable/config.rb', line 20

def initialize(*)
  super
  # Set log params if debug is true
  return unless debug
  self.log_level = :debug
  self.log_grpc = true
end

Instance Method Details

#http_health_port_provided?Boolean

Returns:

  • (Boolean)


28
29
30
# File 'lib/anycable/config.rb', line 28

def http_health_port_provided?
  !http_health_port.nil? && http_health_port != ""
end