17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
# File 'lib/mysql_slaver/cli.rb', line 17
def enslave
MysqlSlaver::Slaver.new(
master_host: options[:master_host],
port: options[:port],
ssh_port: options[:ssh_port],
socket_file: options[:sock],
no_copy: options[:no_copy],
mysql_root_password: options[:root_password],
database: options[:database],
replication_user: options[:replication_user],
replication_password: options[:replication_password],
tables: options[:tables],
dry_run: options[:dry_run]
).enslave!
end
|