Class: Bosh::Director::DbBackup::Adapter::Sqlite
- Defined in:
- lib/bosh/director/db_backup/adapter/sqlite.rb
Instance Method Summary collapse
- #export(output_path) ⇒ Object
-
#initialize(db_config) ⇒ Sqlite
constructor
A new instance of Sqlite.
Constructor Details
#initialize(db_config) ⇒ Sqlite
Returns a new instance of Sqlite.
6 7 8 |
# File 'lib/bosh/director/db_backup/adapter/sqlite.rb', line 6 def initialize(db_config) @db_config = db_config end |
Instance Method Details
#export(output_path) ⇒ Object
10 11 12 |
# File 'lib/bosh/director/db_backup/adapter/sqlite.rb', line 10 def export(output_path) FileUtils.cp(@db_config.fetch('database'), output_path) end |