Class: Backup::Database::Base
- Inherits:
-
Object
- Object
- Backup::Database::Base
- Includes:
- CLI::Helpers, Configuration::Helpers
- Defined in:
- lib/backup/database/base.rb
Direct Known Subclasses
MongoDB, MySQL, PostgreSQL, Redis, Riak
Constant Summary
Constants included from CLI::Helpers
Instance Method Summary collapse
-
#initialize(model) ⇒ Base
constructor
Creates a new instance of the MongoDB database object * Called using super(model) from subclasses *.
-
#perform! ⇒ Object
Super method for all child (database) objects.
Methods included from Configuration::Helpers
Constructor Details
#initialize(model) ⇒ Base
Creates a new instance of the MongoDB database object
-
Called using super(model) from subclasses *
12 13 14 15 |
# File 'lib/backup/database/base.rb', line 12 def initialize(model) @model = model load_defaults! end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Backup::Configuration::Helpers
Instance Method Details
#perform! ⇒ Object
Super method for all child (database) objects. Every database object’s #perform! method should call #super before anything else to prepare
20 21 22 23 |
# File 'lib/backup/database/base.rb', line 20 def perform! prepare! log! end |