# File httpd/lib/symbiosis/config_files/apache.rb, line 123 def disable(fn = nil, force = false) # # Take the filename and and replace available with enabled if no # filename is given. # fn = self.filename.sub("sites-available","sites-enabled") if fn.nil? # # Remove the file, only if it is a symlink to our filename, or if the # force flag is set. # if self.enabled?(fn) or (File.exists?(fn) and force) File.unlink(fn) end # # If the file is still there after disabling, raise an error # raise Errno::EEXIST, fn if File.exists?(fn) nil end