Class: Savior
- Inherits:
-
Object
- Object
- Savior
- Defined in:
- lib/savior.rb,
lib/savior/storage.rb,
lib/savior/database.rb
Defined Under Namespace
Instance Method Summary collapse
-
#database(options) ⇒ Object
load db configuration.
- #save ⇒ Object
-
#storage(options) ⇒ Object
load aws configuration.
Instance Method Details
#database(options) ⇒ Object
load db configuration
6 7 8 |
# File 'lib/savior.rb', line 6 def database() @db = Savior::Database.new() end |
#save ⇒ Object
15 16 17 18 19 |
# File 'lib/savior.rb', line 15 def save check_configuration db_snapshot_file = @db.create_snapshot @storage.upload_file(db_snapshot_file, true) end |