Permalink
Browse files

Set up hoptoad_notifier.

  • Loading branch information...
1 parent 1525fc6 commit 154d901f47399251fdc3a2ca44d18b70cd81242b @nirvdrum committed Jul 12, 2009
Showing with 18 additions and 0 deletions.
  1. +18 −0 base.rb
View
18 base.rb
@@ -56,9 +56,11 @@
timeout: 5000
END
+# Set up shoulda in test_helper.
gsub_file 'test/test_helper.rb', /(require 'test_help')/, "\\1\nrequire 'shoulda'"
# Install Rails plugins
+plugin 'hoptoad_notifier', :git => 'git://github.com/thoughtbot/hoptoad_notifier.git'
plugin 'less-for-rails', :git => 'git://github.com/augustl/less-for-rails.git'
# Install all gems
@@ -69,6 +71,22 @@
rake 'gems:install', :sudo => true
+# Set up Hoptoad notifier.
+initializer 'hoptoad.rb', <<-END
+HoptoadNotifier.configure do |config|
+ break if RAILS_ENV == 'test'
+
+ config.api_key = RAILS_ENV == 'production' ? 'PRODUCTION_KEY' : 'STAGING_KEY'
+ # config.secure = true # Must have a Toad or Bullfrog account for SSL support.
+
+ # Disable certain environment variables from showing up in Hoptoad.
+ config.environment_filters << "AWS_SECRET"
+ config.environment_filters << "EC2_PRIVATE_KEY"
+ config.environment_filters << "AWS_ACCESS"
+ config.environment_filters << "EC2_CERT"
+end
+END
+
# Set up Blueprint CSS.
inside('public/stylesheets') do
run 'wget http://github.com/joshuaclayton/blueprint-css/tarball/master -O blueprint.tar.gz'

0 comments on commit 154d901

Please sign in to comment.