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.25.1 lib/daemons/appstats_log_collector_ctl
appstats-0.25.0 lib/daemons/appstats_log_collector_ctl
appstats-0.24.0 lib/daemons/appstats_log_collector_ctl
appstats-0.23.5 lib/daemons/appstats_log_collector_ctl
appstats-0.23.4 lib/daemons/appstats_log_collector_ctl
appstats-0.23.3 lib/daemons/appstats_log_collector_ctl
appstats-0.23.2 lib/daemons/appstats_log_collector_ctl
appstats-0.23.1 lib/daemons/appstats_log_collector_ctl
appstats-0.23.0 lib/daemons/appstats_log_collector_ctl
appstats-0.22.6 lib/daemons/appstats_log_collector_ctl
appstats-0.22.5 lib/daemons/appstats_log_collector_ctl
appstats-0.22.4 lib/daemons/appstats_log_collector_ctl
appstats-0.22.3 lib/daemons/appstats_log_collector_ctl
appstats-0.22.2 lib/daemons/appstats_log_collector_ctl
appstats-0.22.1 lib/daemons/appstats_log_collector_ctl
appstats-0.22.0 lib/daemons/appstats_log_collector_ctl
appstats-0.21.3 lib/daemons/appstats_log_collector_ctl
appstats-0.21.2 lib/daemons/appstats_log_collector_ctl
appstats-0.21.1 lib/daemons/appstats_log_collector_ctl
appstats-0.20.12 lib/daemons/appstats_log_collector_ctl