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