1 2 3 4 5 6 7 8 9 10 |
%w[
database names here
].each do |name|
command = "mysqldump _development > _development.sql"
puts command
system command
command.gsub!(/_development\b/, "_test")
puts command
system command
end
|
1 2 3 4 5 6 7 8 9 10 |
%w[
database names here
].each do |name|
command = "mysqldump _development > _development.sql"
puts command
system command
command.gsub!(/_development\b/, "_test")
puts command
system command
end
|