Module: ActiveWorker::JobQueue::RunRemotely

Included in:
Controller
Defined in:
lib/active_worker/job_queue/run_remotely.rb

Defined Under Namespace

Classes: RemoteRunner

Constant Summary collapse

THREADED =
"threaded"
RESQUE =
"resque"

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.worker_modeObject



13
14
15
# File 'lib/active_worker/job_queue/run_remotely.rb', line 13

def self.worker_mode
  @@worker_mode
end

.worker_mode=(mode) ⇒ Object



9
10
11
# File 'lib/active_worker/job_queue/run_remotely.rb', line 9

def self.worker_mode=(mode)
  @@worker_mode = mode
end

Instance Method Details

#run_remotelyObject



47
48
49
# File 'lib/active_worker/job_queue/run_remotely.rb', line 47

def run_remotely
  RemoteRunner.new(self.to_s)
end