Sha256: d708d6062647a16f4aebe728713bb0ca81906234399d4b650371cf3191e01374
Contents?: true
Size: 571 Bytes
Versions: 4
Compression:
Stored size: 571 Bytes
Contents
require 'woodhouse' ActiveSupport::Dependencies.autoload_paths << RAILS_ROOT + "/app/workers" Woodhouse.configure do |config| config_paths = %w[woodhouse.yml workling.yml].map{|file| RAILS_ROOT + "/config/" + file } config.logger = ::Rails.logger if ::Rails.env =~ /development|test/ config.dispatcher_type = :local else config.dispatcher_type = :bunny end config_paths.each do |path| if File.exist?(path) config.server_info = YAML.load(File.read(path))[::Rails.env] end end config.runner_type = Woodhouse::Runners.guess end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
woodhouse-1.0.0 | lib/woodhouse/rails2.rb |
woodhouse-0.1.5 | lib/woodhouse/rails2.rb |
woodhouse-0.1.2 | lib/woodhouse/rails2.rb |
woodhouse-0.1.1 | lib/woodhouse/rails2.rb |