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( = {}) @id = ["id"] @incarnation = ["incarnation"] @version = ["version"] @uptime = ["uptime"].to_i @poll = ["poll"].to_i @startdelay = ["startdelay"].to_i @localhostname = ["localhostname"] @controlfile = ["controlfile"] @httpd = ["httpd"].is_a?(HTTPD) ? ["httpd"] : HTTPD.new(["httpd"]) end |