Skip to content

Commit

Permalink
Backup task's mysqldump should respect config/database.yml's socket s…
Browse files Browse the repository at this point in the history
…etting.
  • Loading branch information
botandrose authored and mjankowski committed Jul 21, 2010
1 parent 1060d9f commit 6d5b958
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tasks/backup.rake
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ namespace :backup do
options = "-e -u #{config['username']}"
options += " -p'#{config['password']}'" if config['password']
options += " -h #{config['host']}" if config['host']
options += " -S #{config['socket']}" if config['socket']

raise RuntimeError, "I only work with mysql." unless config['adapter'] == 'mysql'
raise RuntimeError, "Cannot find mysqldump." if mysqldump.blank?
Expand Down

0 comments on commit 6d5b958

Please sign in to comment.