internal_init (God)

    # File lib/god.rb, line 177
      def self.internal_init
        # only do this once
        return if self.inited

        # variable init
        self.watches = {}
        self.groups = {}
        self.pending_watches = []
        self.pending_watch_states = {}
        self.contacts = {}
        self.contact_groups = {}

        # set defaults
        self.log_buffer_size ||= LOG_BUFFER_SIZE_DEFAULT
        self.port ||= DRB_PORT_DEFAULT
        self.allow ||= DRB_ALLOW_DEFAULT
        self.log_level ||= LOG_LEVEL_DEFAULT

        # additional setup
        self.setup

        # log level
        log_level_map = {:debug => Logger::DEBUG,
                         :info => Logger::INFO,
                         :warn => Logger::WARN,
                         :error => Logger::ERROR,
                         :fatal => Logger::FATAL}
        LOG.level = log_level_map[self.log_level]

        # init has been executed
        self.inited = true

        # not yet running
        self.running = false
      end