module Exvo::Helpers
Constants
- VERSION
Public Class Methods
env()
click to toggle source
by default fall back to production; this way the omniauth-exvo’s gem specs can pass (they depend on this gem and on env, but nor Rails nor Merb is defined there)
# File lib/exvo_helpers/helpers.rb, line 167 def self.env @@env ||= Rails.env if defined?(Rails) @@env ||= Merb.env if defined?(Merb) @@env ||= ENV["RACK_ENV"] if ENV["RACK_ENV"] @@env ||= 'production' end
env=(env)
click to toggle source
# File lib/exvo_helpers/helpers.rb, line 174 def self.env=(env) @@env = env end
Private Class Methods
default_opts()
click to toggle source
# File lib/exvo_helpers/helpers.rb, line 181 def self.default_opts { :production => { :auth_debug => false, :auth_host => 'auth.exvo.com', :sso_cookie_domain => 'exvo.com', :budget_host => 'budget.exvo.com', :cdn_host => 'd33gjlr95u9pgf.cloudfront.net', # cloudfront.net so we can use https (cdn.exvo.com via https does not work properly) :cfs_host => 'cfs.exvo.com', :desktop_host => 'home.exvo.com', :themes_host => 'themes.exvo.com', :contacts_host => 'contacts.exvo.com', :inbox_host => 'inbox.exvo.com', :music_host => 'music.exvo.com', :pics_host => 'pics.exvo.com', :preview_host => 'preview.exvo.com' }, :staging => { :auth_debug => false, :auth_host => 'auth.exvo.co', :sso_cookie_domain => 'exvo.co', :budget_host => 'budget.exvo.co', :cdn_host => 'd1by559a994699.cloudfront.net', :cfs_host => 'cfs.exvo.co', :desktop_host => 'home.exvo.co', :themes_host => 'themes.exvo.co', :contacts_host => 'contacts.exvo.co', :inbox_host => 'inbox.exvo.co', :music_host => 'music.exvo.co', :pics_host => 'pics.exvo.co', :preview_host => 'preview.exvo.co' }, :development => { :auth_debug => false, :auth_host => 'auth.exvo.local', :sso_cookie_domain => 'exvo.local', :budget_host => 'budget.exvo.local', :cdn_host => 'home.exvo.local', :cfs_host => 'cfs.exvo.local', :desktop_host => 'home.exvo.local', :themes_host => 'themes.exvo.local', :contacts_host => 'contacts.exvo.local', :inbox_host => 'inbox.exvo.local', :music_host => 'music.exvo.local', :pics_host => 'pics.exvo.local', :preview_host => 'preview.exvo.local' }, :test => { :auth_debug => false, :auth_host => 'auth.exvo.local', :sso_cookie_domain => 'exvo.local', :budget_host => 'budget.exvo.local', :cdn_host => 'home.exvo.local', :cfs_host => 'cfs.exvo.local', :desktop_host => 'home.exvo.local', :themes_host => 'themes.exvo.local', :contacts_host => 'contacts.exvo.local', :inbox_host => 'inbox.exvo.local', :music_host => 'music.exvo.local', :pics_host => 'pics.exvo.local', :preview_host => 'preview.exvo.local' } } end