Method: Dbcp::MysqlDatabase#import_command
- Defined in:
- lib/dbcp/databases/mysql_database.rb
#import_command(snapshot_file) ⇒ Object
7 8 9 |
# File 'lib/dbcp/databases/mysql_database.rb', line 7 def import_command(snapshot_file) %W[mysql #{build_socket_or_host} #{build_port} --user=#{username} --password=#{password} #{database}].reject(&:empty?).shelljoin + ' < ' + snapshot_file.path.shellescape end |