Sha256: b039a874eb96caa511b09ab32b63cdd283426ef6a610c45d620f8335eed83b0f
Contents?: true
Size: 842 Bytes
Versions: 4
Compression:
Stored size: 842 Bytes
Contents
# -*- encoding : utf-8 -*- module Dito def self.domains module_name domains = { :js => 'js', :analytics => 'analytics', :login => 'login', :events => 'events', :share => 'share', :comments => 'comments', :ranking => 'ranking', :badge => 'badge', :notification => 'notification' } if domains[module_name.to_sym].present? name = domains[module_name.to_sym] url = case @configuration.environment when "production" "https://#{name}.plataformasocial.com.br" when "development" "http://#{name}.dev.plataformasocial.com.br" when "test" "http://#{name}.dev.plataformasocial.com.br" when "staging" "http://#{name}.dev.plataformasocial.com.br" end url end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
dito-0.0.4 | lib/dito/domains.rb |
dito-0.0.3 | lib/dito/domains.rb |
dito-0.0.2 | lib/dito/domains.rb |
dito-0.0.1 | lib/dito/domains.rb |