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
.configuration ⇒ Object
11
12
13
|
# File 'lib/rector.rb', line 11
def configuration
@configuration ||= Rector::Configuration.new
end
|
19
20
21
|
# File 'lib/rector.rb', line 19
def configure
yield configuration
end
|
.reset ⇒ Object
15
16
17
|
# File 'lib/rector.rb', line 15
def reset
@configuration = nil
end
|