merging stuff and fun

This commit is contained in:
Josh Kalderimis 2013-05-02 20:06:19 +02:00
commit 48c8e8c2a5

View File

@ -121,13 +121,17 @@ module Travis::Api
Travis::Database.connect
if Travis.env == 'production' || Travis.env == 'staging'
puts "is octopus working? #{::Octopus.enabled?}"
# Octopus checks for Rails.env, just hardcode enabled?
Octopus.instance_eval do
def enabled?
true
end
end
ActiveRecord::Base.custom_octopus_connection = false
::Octopus.setup do |config|
config.shards = { :follower => Travis.config.database_follower }
config.environments = ['production', 'staging']
end
end
Travis::Features.start