# File xmpp/lib/symbiosis/config_files/prosody.rb, line 44 def enabled?(fn = nil) fn = self.filename.sub("conf.avail","conf.d") if fn.nil? # # Make sure the file exists, and that it is a symlink pointing to our # config file # if File.symlink?(fn) ln = File.readlink(fn) unless ln =~ /^\// ln = File.join(File.dirname(fn),ln) end return File.expand_path(ln) == self.filename end # # FIXME: should probably check at this point to see if any files point # back to the config, or if any file contains the configuration for # this domain. # # # Otherwise return false # false end