lib/tasks/db.rake in db-sync-0.0.10 vs lib/tasks/db.rake in db-sync-0.0.11
- old
+ new
@@ -8,10 +8,10 @@
desc 'Upload data from the files into the database.'
task up: :environment do
commit = ENV['commit'].present? ? ENV['commit'] == 'true' : nil
synchronizer = Db::Sync.new(sync_dir)
- sync_up_and_print(synchronizer, sync_dir, commit)
+ sync_up_and_print(synchronizer, commit)
if commit.nil? && synchronizer.log.present?
print "Commit Changes? [y/n]\n"
sync_up_and_print(synchronizer, true) if STDIN.gets.chomp == 'y'
end
end