Class: Dumper::Db
- Inherits:
-
Object
- Object
- Dumper::Db
- Defined in:
- lib/rspec/flaky/dumper/db.rb
Instance Method Summary collapse
Instance Method Details
#dump!(location, status) ⇒ Object
6 7 8 9 10 11 12 |
# File 'lib/rspec/flaky/dumper/db.rb', line 6 def dump!(location, status) path = dump_path(location) FileUtils.mkdir_p(path) unless File.exists?(path) #TODO adapter for mysql and sqlite3 #TODO username from config system "pg_dump -U postgres -d #{db_name} > #{path}/#{status}.sql" end |