Skip to content

Commit

Permalink
updated readme and took away puts
Browse files Browse the repository at this point in the history
  • Loading branch information
jamster committed Mar 23, 2011
1 parent 4cba944 commit 0cf6673
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 3 deletions.
23 changes: 22 additions & 1 deletion README.rdoc
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -4,7 +4,28 @@ Resque Statsd is a Resque plugin that will wrap the enqueueing, performing, fail


== CURRENT STATUS == CURRENT STATUS


COMPLETELY UNTESTED (NOT EVEN TRIED OUT) No tests but in production

== Usage

=== Install

gem install resque-statsd
gem install jamster-statsd # really jnunemaker's version of the statsd rubygem

=== Rails Setup

in an initializer, set up the Statsd

touch config/initializers/resque-statsd.rb

in file add code

ENV['GRAPHITE_HOST'] = 'graphite.YOURHOST.com'
ENV['APP_NAME'] = 'yourappname_resque' # I add the _resque to separate against web
require 'resque-statsd'




== Background Reading == Background Reading


Expand Down
2 changes: 0 additions & 2 deletions lib/resque-statsd.rb
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
# Set up the client # Set up the client
$resque_statsd = Statsd.new(ENV['GRAPHITE_HOST'], 8125) $resque_statsd = Statsd.new(ENV['GRAPHITE_HOST'], 8125)
$resque_statsd.namespace="#{ENV['APP_NAME']}_#{ENV['RAILS_ENV']}.resque" $resque_statsd.namespace="#{ENV['APP_NAME']}_#{ENV['RAILS_ENV']}.resque"
puts $resque_statsd.namespace





module Resque module Resque
Expand Down

0 comments on commit 0cf6673

Please sign in to comment.