Class: DBRotator
- Inherits:
-
Object
- Object
- DBRotator
- Defined in:
- lib/db_rotator.rb
Defined Under Namespace
Classes: Schema
Constant Summary collapse
- TIME_FORMAT =
"%Y%m%d"
Instance Method Summary collapse
- #import ⇒ Object
-
#initialize(config) ⇒ DBRotator
constructor
A new instance of DBRotator.
- #refresh ⇒ Object
- #rotate ⇒ Object
Constructor Details
#initialize(config) ⇒ DBRotator
6 7 8 9 10 |
# File 'lib/db_rotator.rb', line 6 def initialize(config) @config = config.config @schemas = [] populate_schemas end |
Instance Method Details
#import ⇒ Object
24 25 26 27 |
# File 'lib/db_rotator.rb', line 24 def import import_dump populate_schemas end |
#refresh ⇒ Object
17 18 19 20 21 22 |
# File 'lib/db_rotator.rb', line 17 def refresh download_dump import prune grant_access end |
#rotate ⇒ Object
12 13 14 15 |
# File 'lib/db_rotator.rb', line 12 def rotate refresh update_db_yaml end |