Class: BR::DatabaseEngine
- Inherits:
-
Object
- Object
- BR::DatabaseEngine
- Defined in:
- lib/brbackup.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#logger ⇒ Object
Returns the value of attribute logger.
Class Method Summary collapse
Instance Method Summary collapse
- #dbpass ⇒ Object
- #dbuser ⇒ Object
- #dump_database(name) ⇒ Object
-
#initialize(backups) ⇒ DatabaseEngine
constructor
A new instance of DatabaseEngine.
- #log(msg) ⇒ Object
Constructor Details
#initialize(backups) ⇒ DatabaseEngine
Returns a new instance of DatabaseEngine.
49 50 51 |
# File 'lib/brbackup.rb', line 49 def initialize(backups) @backups = backups end |
Instance Attribute Details
#logger ⇒ Object
Returns the value of attribute logger.
47 48 49 |
# File 'lib/brbackup.rb', line 47 def logger @logger end |
Class Method Details
Instance Method Details
#dbpass ⇒ Object
61 62 63 |
# File 'lib/brbackup.rb', line 61 def dbpass @backups.config[:dbpass] end |
#dbuser ⇒ Object
57 58 59 |
# File 'lib/brbackup.rb', line 57 def dbuser @backups.config[:dbuser] end |
#dump_database(name) ⇒ Object
53 54 55 |
# File 'lib/brbackup.rb', line 53 def dump_database(name) raise "Implement #dump_database in #{self.class}" end |
#log(msg) ⇒ Object
65 66 67 |
# File 'lib/brbackup.rb', line 65 def log(msg) @logger.info(msg) end |