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