class GrowViral::Keystore::Configuration
Attributes
env[R]
Public Class Methods
new(env)
click to toggle source
# File lib/keystore/configuration.rb, line 6 def initialize(env) @env = env end
Public Instance Methods
host()
click to toggle source
# File lib/keystore/configuration.rb, line 10 def host case env.to_sym when :test when :development ENV["GROWVIRAL_KEYSTORE_HOST"] || "http://localhost:3000" when :production ENV["GROWVIRAL_KEYSTORE_HOST"] end end