engine/lib/locomotive/hosting/bushido.rb

20 lines
401 B
Ruby
Raw Normal View History

require 'locomotive/hosting/bushido/enabler'
2011-03-27 23:49:12 +00:00
module Locomotive
module Hosting
2011-03-27 23:49:12 +00:00
module Bushido
def bushido?
self.config.hosting == :bushido ||
(self.config.hosting == :auto && ENV['APP_TLD'] == 'bushi.do')
2011-03-27 23:49:12 +00:00
end
def enable_bushido
Locomotive.send(:include, Locomotive::Hosting::Bushido::Enabler)
self.enable_bushido!
2011-03-27 23:49:12 +00:00
end
2011-03-27 23:49:12 +00:00
end
end
end