Method: Monit::Server#initialize

Defined in:
lib/monit/server.rb

#initialize(options = {}) ⇒ Server

Returns a new instance of Server.



6
7
8
9
10
11
12
13
14
15
16
# File 'lib/monit/server.rb', line 6

def initialize(options = {})
  @id = options["id"]
  @incarnation = options["incarnation"]
  @version = options["version"]
  @uptime = options["uptime"].to_i
  @poll = options["poll"].to_i
  @startdelay = options["startdelay"].to_i
  @localhostname = options["localhostname"]
  @controlfile = options["controlfile"]
  @httpd = options["httpd"].is_a?(HTTPD) ? options["httpd"] : HTTPD.new(options["httpd"])
end