Skip to content

Instantly share code, notes, and snippets.

/*
* def.js: Простое наследование в стиле Ruby для Javascript
*
* Copyright (c) 2010 Tobias Schneider
* This script is freely distributable under the terms of the MIT license.
*/
(function(global) {
// Используется, чтобы сохранить суперкласс и "плагины" ля
// дальнейшего использования
#!/usr/bin/env ruby
require 'erb'
rsyslog_block = %{#
# <%= virtual_host %>
#
$InputFileName /var/log/httpd/<%= virtual_host %>-error.log
$InputFileTag <%= virtual_host %>_error
$InputFileStateFile stat-<%= virtual_host %>-error.log
#
# Supported browsers
#
modern_browser gecko 1.9;
# note that Safari related directives match
# Chrome, Mobile Safari, Palm Pre and other WebKit-based browsers here, too, thanks
# to all of them using almost identical User-Agent strings
modern_browser safari 3.0;