lib/rhosync/api/push_objects.rb in rhosync-2.1.10 vs lib/rhosync/api/push_objects.rb in rhosync-2.1.11
- old
+ new
@@ -1,6 +1,9 @@
Server.api :push_objects do |params,user|
source = Source.load(params[:source_id],{:app_id=>APP_NAME,:user_id=>params[:user_id]})
source_sync = SourceSync.new(source)
- source_sync.push_objects(params[:objects])
+ timeout = params[:timeout] || 10
+ raise_on_expire = params[:raise_on_expire] || false
+ rebuild_md = params[:rebuild_md].nil? ? true : params[:rebuild_md]
+ source_sync.push_objects(params[:objects],timeout,raise_on_expire,rebuild_md)
'done'
end
\ No newline at end of file