Sha256: dec2cb7fc60ac4ed2b2a0383cd442a6bc58abb72e58875f0c7532f7f26bdbf91
Contents?: true
Size: 751 Bytes
Versions: 13
Compression:
Stored size: 751 Bytes
Contents
Server.api4 :push_deletes, :post, "/app/#{Rhoconnect::API_VERSION}/:source_id/push_deletes", true, {:verb => :post, :url => ['/api/push_deletes', '/api/source/push_deletes']} do |params,user| source = Source.load(params[:source_id],{:app_id=>APP_NAME,:user_id=>params[:user_id]}) # if source does not exist create one for dynamic adapter source = Source.create({:name => params[:source_id]},{:app_id => APP_NAME,:user_id=>params[:user_id]}) unless source 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
13 entries across 13 versions & 1 rubygems