Sha256: 7144de317f1b9ae22fb1a6bad096c2c7a9f4b4087a1807e2d160ef7bbdf2ce6f

Contents?: true

Size: 416 Bytes

Versions: 3

Compression:

Stored size: 416 Bytes

Contents

Server.api :push_objects, :source 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)
  source_sync.push_objects(params[:objects])
  'done'
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rhoconnect-3.0.0.rc1 lib/rhoconnect/api/source/push_objects.rb
rhoconnect-3.0.0.beta3 lib/rhoconnect/api/source/push_objects.rb
rhoconnect-3.0.0.beta1 lib/rhoconnect/api/source/push_objects.rb