class Wordmove::Deployer::Ssh::DefaultSqlAdapter
Private Instance Methods
adapt_local_db!()
click to toggle source
# File lib/wordmove/deployer/ssh/default_sql_adapter.rb, line 11 def adapt_local_db! save_local_db(local_dump_path) adapt_sql(local_dump_path, local_options, remote_options) run compress_command(local_dump_path) import_remote_dump(local_gzipped_dump_path) end
adapt_remote_db!()
click to toggle source
# File lib/wordmove/deployer/ssh/default_sql_adapter.rb, line 27 def adapt_remote_db! download_remote_db(local_gzipped_dump_path) run uncompress_command(local_gzipped_dump_path) adapt_sql(local_dump_path, remote_options, local_options) run mysql_import_command(local_dump_path, local_options[:database]) end
adapt_sql(save_to_path, local, remote)
click to toggle source
# File lib/wordmove/deployer/ssh/default_sql_adapter.rb, line 38 def adapt_sql(save_to_path, local, remote) return if options[:no_adapt] logger.task_step true, "Adapt dump" SqlAdapter::Default.new(save_to_path, local, remote).adapt! unless simulate? end
after_pull_cleanup!()
click to toggle source
# File lib/wordmove/deployer/ssh/default_sql_adapter.rb, line 34 def after_pull_cleanup! local_delete(local_dump_path) end
after_push_cleanup!()
click to toggle source
# File lib/wordmove/deployer/ssh/default_sql_adapter.rb, line 18 def after_push_cleanup! local_delete(local_gzipped_dump_path) end
backup_local_db!()
click to toggle source
# File lib/wordmove/deployer/ssh/default_sql_adapter.rb, line 22 def backup_local_db! save_local_db(local_backup_path) run compress_command(local_backup_path) end
backup_remote_db!()
click to toggle source
# File lib/wordmove/deployer/ssh/default_sql_adapter.rb, line 7 def backup_remote_db! download_remote_db(local_gzipped_backup_path) end