Skip to content

Commit

Permalink
fix the to_a method which removed in ruby 1.9.2
Browse files Browse the repository at this point in the history
  • Loading branch information
frankyue committed Dec 2, 2011
1 parent df1f93a commit 664da5d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/backup/storage.rb
Expand Up @@ -57,11 +57,11 @@ def backup_mysql
mysql_config = ""
mysql_config += " -u#{mysql.user}" if mysql.user
mysql_config += " -p#{mysql.password}" if mysql.password
mysql_config += " --databases #{mysql.databases.to_a.join(' ')}" if mysql.databases
mysql_config += " --tables #{mysql.tables.to_a.join(' ')}" if mysql.tables
mysql_config += " --databases #{mysql.databases.split("\n").join(' ')}" if mysql.databases
mysql_config += " --tables #{mysql.tables.split("\n").join(' ')}" if mysql.tables
mysql_config += " #{mysql.options}" if mysql.options
mysql.skiptables && mysql.skiptables.to_a.map do |table|
table = table.include?('.') ? table : "#{mysql.databases.to_a[0]}.#{table}"
mysql.skiptables && mysql.skiptables.split("\n").map do |table|
table = table.include?('.') ? table : "#{mysql.databases.split("\n")[0]}.#{table}"
mysql_config += " --ignore_table=#{table}"
end

Expand Down

0 comments on commit 664da5d

Please sign in to comment.