Class: Bosh::Director::DbBackup::Adapter::Sqlite

Inherits:
Object
  • Object
show all
Defined in:
lib/bosh/director/db_backup/adapter/sqlite.rb

Instance Method Summary collapse

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