Sha256: be50843f261388c9d66f84321f902deb1662af40ff55b04223ceea0f50137225

Contents?: true

Size: 706 Bytes

Versions: 82

Compression:

Stored size: 706 Bytes

Contents

#!/usr/bin/env ruby
require 'rubygems'
require "daemons"
require 'yaml'
require 'erb'

gem 'activesupport', '>=3.0.0.beta4'
gem 'activerecord', '>=3.0.0.beta4'
require 'active_support'
require 'active_record'

require File.dirname(__FILE__) + "/../appstats.rb"

# For some reason, ActiveSupport 3.0.0 doesn't load.
# Load needed extension directly for now.
require "active_support/core_ext/object"
require "active_support/core_ext/hash"

options = YAML.load(
  ERB.new(
    IO.read(
      File.dirname(__FILE__) + "/../../config/daemons.yml"
  )).result).with_indifferent_access
    
options[:dir_mode] = options[:dir_mode].to_sym

Daemons.run File.dirname(__FILE__) + "/appstats_log_collector.rb", options

Version data entries

82 entries across 82 versions & 1 rubygems

Version Path
appstats-0.17.0 lib/daemons/appstats_log_collector_ctl
appstats-0.16.7 lib/daemons/appstats_log_collector_ctl
appstats-0.16.6 lib/daemons/appstats_log_collector_ctl
appstats-0.16.5 lib/daemons/appstats_log_collector_ctl
appstats-0.16.4 lib/daemons/appstats_log_collector_ctl
appstats-0.16.3 lib/daemons/appstats_log_collector_ctl
appstats-0.16.2 lib/daemons/appstats_log_collector_ctl
appstats-0.16.1 lib/daemons/appstats_log_collector_ctl
appstats-0.15.1 lib/daemons/appstats_log_collector_ctl
appstats-0.15.0 lib/daemons/appstats_log_collector_ctl
appstats-0.14.0 lib/daemons/appstats_log_collector_ctl
appstats-0.13.4 lib/daemons/appstats_log_collector_ctl
appstats-0.13.3 lib/daemons/appstats_log_collector_ctl
appstats-0.13.2 lib/daemons/appstats_log_collector_ctl
appstats-0.13.1 lib/daemons/appstats_log_collector_ctl
appstats-0.13.0 lib/daemons/appstats_log_collector_ctl
appstats-0.12.5 lib/daemons/appstats_log_collector_ctl
appstats-0.12.4 lib/daemons/appstats_log_collector_ctl
appstats-0.12.2 lib/daemons/appstats_log_collector_ctl
appstats-0.12.1 lib/daemons/appstats_log_collector_ctl