Module: Rector

Defined in:
lib/rector.rb,
lib/rector/job.rb,
lib/rector/worker.rb,
lib/rector/configuration.rb,
lib/rector/backends/redis.rb

Defined Under Namespace

Modules: Backends Classes: Job, Worker

Constant Summary collapse

Configuration =
::OpenStruct

Class Method Summary collapse

Class Method Details

.backend_for(job_id) ⇒ Object



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

def backend_for(job_id)
  Rector::Backends::Redis.new(job_id)
end

.configurationObject



11
12
13
# File 'lib/rector.rb', line 11

def configuration
  @configuration ||= Rector::Configuration.new
end

.configure {|configuration| ... } ⇒ Object

Yields:



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

def configure
  yield configuration
end

.resetObject



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

def reset
  @configuration = nil
end