Class: MorpheusHeroku::Config
- Inherits:
-
Object
- Object
- MorpheusHeroku::Config
- Defined in:
- lib/morpheus-heroku/config.rb
Instance Attribute Summary collapse
-
#app_name ⇒ Object
Returns the value of attribute app_name.
-
#backup_location ⇒ Object
Returns the value of attribute backup_location.
-
#database_name ⇒ Object
Returns the value of attribute database_name.
-
#dev_email ⇒ Object
Returns the value of attribute dev_email.
-
#log_events ⇒ Object
Returns the value of attribute log_events.
Instance Method Summary collapse
-
#initialize ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize ⇒ Config
Returns a new instance of Config.
5 6 7 8 9 10 11 12 13 |
# File 'lib/morpheus-heroku/config.rb', line 5 def initialize @database_name = if ActiveRecord::Base.respond_to?(:connection_config) ActiveRecord::Base.connection_config[:database].dup elsif ActiveRecord::Base.respond_to?(:connection_db_config) ActiveRecord::Base.connection_db_config.configuration_hash[:database].dup end @backup_location = "tmp/latest.dump" @log_events = false end |
Instance Attribute Details
#app_name ⇒ Object
Returns the value of attribute app_name.
3 4 5 |
# File 'lib/morpheus-heroku/config.rb', line 3 def app_name @app_name end |
#backup_location ⇒ Object
Returns the value of attribute backup_location.
3 4 5 |
# File 'lib/morpheus-heroku/config.rb', line 3 def backup_location @backup_location end |
#database_name ⇒ Object
Returns the value of attribute database_name.
3 4 5 |
# File 'lib/morpheus-heroku/config.rb', line 3 def database_name @database_name end |
#dev_email ⇒ Object
Returns the value of attribute dev_email.
3 4 5 |
# File 'lib/morpheus-heroku/config.rb', line 3 def dev_email @dev_email end |
#log_events ⇒ Object
Returns the value of attribute log_events.
3 4 5 |
# File 'lib/morpheus-heroku/config.rb', line 3 def log_events @log_events end |