Class: AppConfig
- Inherits:
-
Settingslogic
- Object
- Settingslogic
- AppConfig
- Defined in:
- lib/generators/voluntary/install/templates/app/models/app_config.rb
Class Method Summary collapse
Class Method Details
.load! ⇒ Object
20 21 |
# File 'lib/generators/voluntary/install/templates/app/models/app_config.rb', line 20 def self.load! end |
.new_relic_app_name ⇒ Object
29 30 31 |
# File 'lib/generators/voluntary/install/templates/app/models/app_config.rb', line 29 def self.new_relic_app_name self[:new_relic_app_name] || self[:pod_uri].host end |
.setup! ⇒ Object
23 24 |
# File 'lib/generators/voluntary/install/templates/app/models/app_config.rb', line 23 def self.setup! end |
.source_file_name ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/generators/voluntary/install/templates/app/models/app_config.rb', line 8 def self.source_file_name if ENV['application_yml'].present? puts "using remote application.yml" return ENV['application_yml'] end config_file = Rails.root.join("config", "application.yml") if !File.exists?(config_file) && (Rails.env == 'test' || Rails.env.include?("integration") || EnvironmentConfiguration.heroku?) config_file = Rails.root.join("config", "application.yml.example") end config_file end |