Sha256: 28bcd567863b3f491b13e532908bf2ef5e36ecc274e9c4945e7a769fabec8185

Contents?: true

Size: 446 Bytes

Versions: 49

Compression:

Stored size: 446 Bytes

Contents

module Rhosync
  class SourceJob
    class << self
      attr_accessor :queue
    end
    
    def self.perform(job_type,source_id,app_id,user_id,client_id,params)
      source = Source.load(source_id,{:app_id => app_id,:user_id => user_id})
      source_sync = SourceSync.new(source)
      case job_type.to_sym
      when :query then source_sync.do_query(params)
      when :cud then source_sync.do_cud(client_id)
      end    
    end
  end
end

Version data entries

49 entries across 49 versions & 1 rubygems

Version Path
rhosync-2.1.18.beta2 lib/rhosync/jobs/source_job.rb
rhosync-2.1.18.beta1 lib/rhosync/jobs/source_job.rb
rhosync-2.1.17 lib/rhosync/jobs/source_job.rb
rhosync-2.1.17.beta7 lib/rhosync/jobs/source_job.rb
rhosync-2.1.17.beta6 lib/rhosync/jobs/source_job.rb
rhosync-2.1.17.beta5 lib/rhosync/jobs/source_job.rb
rhosync-2.1.17.beta4 lib/rhosync/jobs/source_job.rb
rhosync-2.1.17.beta3 lib/rhosync/jobs/source_job.rb
rhosync-2.1.17.beta2 lib/rhosync/jobs/source_job.rb
rhosync-2.1.17.beta1 lib/rhosync/jobs/source_job.rb
rhosync-2.1.16 lib/rhosync/jobs/source_job.rb
rhosync-2.1.15 lib/rhosync/jobs/source_job.rb
rhosync-2.1.14 lib/rhosync/jobs/source_job.rb
rhosync-2.1.13 lib/rhosync/jobs/source_job.rb
rhosync-2.1.12 lib/rhosync/jobs/source_job.rb
rhosync-2.1.11 lib/rhosync/jobs/source_job.rb
rhosync-2.1.10 lib/rhosync/jobs/source_job.rb
rhosync-2.1.7 lib/rhosync/jobs/source_job.rb
rhosync-2.1.6 lib/rhosync/jobs/source_job.rb
rhosync-2.1.3 lib/rhosync/jobs/source_job.rb