require 'flydata/command/sync' require 'flydata/source_mysql/command/mysql_command_base' # Command class must be in module Flydata::Command module Flydata module Command class Mysqldump < Sync include MysqlCommandBase def generate_command(dbconf, args) dbconf.delete('tables') dbconf[:custom_option_end] = args.join(' ') dbconf[:command] = 'mysqldump' FlydataCore::Mysql::CommandGenerator::generate_mysql_cmd(dbconf) end end end end