Module: Kindly

Defined in:
lib/kindly.rb,
lib/kindly/db.rb,
lib/kindly/queue.rb,
lib/kindly/runner.rb,
lib/kindly/version.rb,
lib/kindly/registry.rb,
lib/kindly/requester.rb,
lib/kindly/jobs/test_job.rb,
lib/kindly/jobs/do_nothing.rb,
lib/kindly/jobs/test_job_with_input.rb,
lib/kindly/jobs/test_job_with_output.rb

Defined Under Namespace

Modules: Jobs, Registry Classes: DB, Queue, Requester, Runner

Constant Summary collapse

VERSION =
'0.1.2'

Class Method Summary collapse

Class Method Details

.pingObject



23
24
25
# File 'lib/kindly.rb', line 23

def self.ping
  DB.new.ping
end

.request(job_name, input = {}) ⇒ Object



19
20
21
# File 'lib/kindly.rb', line 19

def self.request(job_name, input = {})
  Requester.new.request(job_name, input)
end

.run(job_name) ⇒ Object



15
16
17
# File 'lib/kindly.rb', line 15

def self.run(job_name)
  Runner.new.run(job_name)
end