lib/capistrano/mongo_sync/mongo_sync.rb in capistrano-mongo-sync-0.1.6 vs lib/capistrano/mongo_sync/mongo_sync.rb in capistrano-mongo-sync-0.1.7
- old
+ new
@@ -56,10 +56,10 @@
dump_dir
end
def collection_ids_arg
- '{_id: {$in: [%s]}}' % @collection_ids.split(',').map{|id| 'ObjectId("%s")' % id}.join(',')
+ '\'{_id: {$in: [%s]}}\'' % @collection_ids.split(',').map{|id| 'ObjectId("%s")' % id}.join(',')
end
def staging_mongorestore!( remote_dump_dir )
full_path_to_remote_dump_dir = if remote_dump_dir == File.basename(remote_dump_dir)
File.join(@remote_dump_base, remote_dump_dir, @production_db)