Navigation Menu

Skip to content

Commit

Permalink
Forgotten to uncomment command execution
Browse files Browse the repository at this point in the history
  • Loading branch information
nixa committed Oct 15, 2010
1 parent e76a22c commit 277c69f
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions lib/tasks/data_sync.rake
Expand Up @@ -30,8 +30,7 @@ namespace :db do
commands << "tar -cjf #{Rails.root.join('db', 'production_data.tar.bz2')} production_data.sql"
commands << "rm -fr #{Rails.root.join('db', 'production_data.sql')}"

# `#{commands.join(' && ')}`
puts commands.join(' && ')
`#{commands.join(' && ')}`
when 'mongodb'
port = databases[Rails.env]['port']
port ||= 27017 # default mongodb port
Expand Down Expand Up @@ -81,12 +80,7 @@ namespace :db do

commands << "rm -fr #{Rails.root.join('db', 'production_data.tar.bz2')} #{Rails.root.join('db', 'production_data.sql')}"

puts commands.join(' && ')

#result = `#{commands.join(' ')}`
#if result.present?
# puts result
# end
`#{commands.join(' && ')}`
when 'mongodb'
commands = []
commands << "cd #{Rails.root.join('db')}"
Expand Down

0 comments on commit 277c69f

Please sign in to comment.