Module: Cuniculus::Plugins::HealthCheck::SupervisorMethods

Defined in:
lib/cuniculus/plugins/health_check.rb

Instance Method Summary collapse

Instance Method Details

#initialize(config) ⇒ Object



66
67
68
69
70
71
# File 'lib/cuniculus/plugins/health_check.rb', line 66

def initialize(config)
  super(config)
  hc_plugin_opts = config.opts[OPTS_KEY]
  @hc_server = Rack::Handler.get(hc_plugin_opts["server"])
  @hc_rack_app = build_rack_app(hc_plugin_opts)
end

#startObject



73
74
75
76
# File 'lib/cuniculus/plugins/health_check.rb', line 73

def start
  start_health_check_server
  super
end

#stopObject



78
79
80
81
# File 'lib/cuniculus/plugins/health_check.rb', line 78

def stop
  @hc_server.shutdown
  super
end