This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$LocalHostName myhost | |
# load module to read from local files | |
$ModLoad imfile | |
# for each local log file path, duplicate the 6 lines below and edit lines 2-4 | |
$RuleSet sendtoci # use a non-default ruleset (keeps logs out of /var/log/) | |
$InputFileName /var/www/app/shared/log/production.log | |
$InputFileTag unicorn: | |
$InputFileStateFile sendtoci-unicorn |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'date' | |
require 'redis' | |
require 'net/smtp' | |
require 'resque' | |
require 'resque/version' | |
class App | |
VERSION = '0.0.1' | |
def initialize |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
# == Synopsis | |
# This is a sample description of the application. | |
# Blah blah blah. | |
# | |
# == Examples | |
# This command does blah blah blah. | |
# ruby_cl_skeleton foo.txt | |
# |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class BasePresenter | |
def initialize(object, template) | |
@object = object | |
@template = template | |
end | |
private | |
def self.presents(name) | |
define_method(name) do |
NewerOlder