Class: Yeller::StartupParams
- Inherits:
-
Object
- Object
- Yeller::StartupParams
- Defined in:
- lib/yeller/startup_params.rb
Constant Summary collapse
Class Method Summary collapse
Class Method Details
.application_environment(options) ⇒ Object
16 17 18 19 20 21 22 |
# File 'lib/yeller/startup_params.rb', line 16 def self.application_environment() [:"application-environment"] || ENV['RAILS_ENV'] || ENV['RACK_ENV'] || ((defined?(::Rails) && Rails.respond_to?(:env)) ? Rails.env.to_s : nil) || PRODUCTION end |
.defaults(options = {}) ⇒ Object
8 9 10 11 12 13 14 |
# File 'lib/yeller/startup_params.rb', line 8 def self.defaults(={}) { :host => Socket.gethostname, :"application-environment" => application_environment(), :"client-version" => VERSION, } end |