Sha256: 488c3e57abeb00a4fb70c9e634df38f6795037399457ca7c7eb54e12f94c160f

Contents?: true

Size: 609 Bytes

Versions: 19

Compression:

Stored size: 609 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)
  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

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
rhoconnect-3.2.1 lib/rhoconnect/api/source/push_objects.rb
rhoconnect-3.2.0 lib/rhoconnect/api/source/push_objects.rb
rhoconnect-3.2.0.beta5 lib/rhoconnect/api/source/push_objects.rb
rhoconnect-3.2.0.beta4 lib/rhoconnect/api/source/push_objects.rb
rhoconnect-3.2.0.beta3 lib/rhoconnect/api/source/push_objects.rb
rhoconnect-3.2.0.beta2 lib/rhoconnect/api/source/push_objects.rb
rhoconnect-3.2.0.beta1 lib/rhoconnect/api/source/push_objects.rb
rhoconnect-3.1.2 lib/rhoconnect/api/source/push_objects.rb
rhoconnect-3.1.1 lib/rhoconnect/api/source/push_objects.rb
rhoconnect-3.1.0 lib/rhoconnect/api/source/push_objects.rb
rhoconnect-3.1.0.beta2 lib/rhoconnect/api/source/push_objects.rb
rhoconnect-3.1.0.beta1 lib/rhoconnect/api/source/push_objects.rb
rhoconnect-3.0.6 lib/rhoconnect/api/source/push_objects.rb
rhoconnect-3.0.5 lib/rhoconnect/api/source/push_objects.rb
rhoconnect-3.0.4 lib/rhoconnect/api/source/push_objects.rb
rhoconnect-3.0.3 lib/rhoconnect/api/source/push_objects.rb
rhoconnect-3.0.2 lib/rhoconnect/api/source/push_objects.rb
rhoconnect-3.0.1 lib/rhoconnect/api/source/push_objects.rb
rhoconnect-3.0.0 lib/rhoconnect/api/source/push_objects.rb