Sha256: 8b72d4817cc177146b04677fdf34c8b23c9d63c22f11634bc326397992111b0f

Contents?: true

Size: 422 Bytes

Versions: 16

Compression:

Stored size: 422 Bytes

Contents

Server.api :push_deletes do |params,user|
  source = Source.load(params[:source_id],{:app_id=>APP_NAME,:user_id=>params[:user_id]})
  source_sync = SourceSync.new(source)
  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_deletes(params[:objects],timeout,raise_on_expire,rebuild_md)
  'done'
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
rhosync-2.1.18.beta2 lib/rhosync/api/push_deletes.rb
rhosync-2.1.18.beta1 lib/rhosync/api/push_deletes.rb
rhosync-2.1.17 lib/rhosync/api/push_deletes.rb
rhosync-2.1.17.beta7 lib/rhosync/api/push_deletes.rb
rhosync-2.1.17.beta6 lib/rhosync/api/push_deletes.rb
rhosync-2.1.17.beta5 lib/rhosync/api/push_deletes.rb
rhosync-2.1.17.beta4 lib/rhosync/api/push_deletes.rb
rhosync-2.1.17.beta3 lib/rhosync/api/push_deletes.rb
rhosync-2.1.17.beta2 lib/rhosync/api/push_deletes.rb
rhosync-2.1.17.beta1 lib/rhosync/api/push_deletes.rb
rhosync-2.1.16 lib/rhosync/api/push_deletes.rb
rhosync-2.1.15 lib/rhosync/api/push_deletes.rb
rhosync-2.1.14 lib/rhosync/api/push_deletes.rb
rhosync-2.1.13 lib/rhosync/api/push_deletes.rb
rhosync-2.1.12 lib/rhosync/api/push_deletes.rb
rhosync-2.1.11 lib/rhosync/api/push_deletes.rb