Class: Gummi::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/gummi/configuration.rb

Instance Method Summary collapse

Instance Method Details

#default_hostsObject



23
24
25
26
27
28
29
30
# File 'lib/gummi/configuration.rb', line 23

def default_hosts
  case Gummi.env
  when "production"     then "elasticsearch.service.consul:9200"
  when "staging"        then "elasticsearch.service.consul:9200"
  when "development"    then "localhost:9200"
  when "test"           then "localhost:9200"
  end
end

#default_loggerObject



15
16
17
18
19
20
21
# File 'lib/gummi/configuration.rb', line 15

def default_logger
  if defined?(Rails)
    Rails.logger
  else
    Logger.new(STDERR)
  end
end