Module: DerailSpecs
- Defined in:
- lib/derail_specs/server.rb,
lib/derail_specs.rb,
lib/derail_specs/boot.rb,
lib/derail_specs/railtie.rb,
lib/derail_specs/version.rb,
lib/derail_specs/server/app.rb,
lib/derail_specs/server/puma.rb,
lib/derail_specs/transaction.rb,
lib/derail_specs/server/timer.rb,
lib/derail_specs/server/checker.rb,
lib/derail_specs/factory_bot_stub.rb,
lib/derail_specs/initializer_hooks.rb,
lib/derail_specs/server/middleware.rb,
lib/generators/derail_specs/install_generator.rb
Overview
Defined Under Namespace
Modules: Generators
Classes: Boot, Error, FactoryBot, InitializerHooks, Railtie, Server, Transaction
Constant Summary
collapse
- VERSION =
"0.7.0"
Class Method Summary
collapse
Class Method Details
.configuration ⇒ Object
8
9
10
11
12
13
14
15
16
17
18
19
20
|
# File 'lib/derail_specs.rb', line 8
def self.configuration
@configuration ||= Struct
.new(
:command,
:host,
:port,
keyword_init: true,
)
.new(
host: '127.0.0.1',
port: 3001,
)
end
|
22
23
24
|
# File 'lib/derail_specs.rb', line 22
def self.configure
yield(configuration)
end
|
.hooks ⇒ Object
2
3
4
|
# File 'lib/derail_specs/initializer_hooks.rb', line 2
def self.hooks
InitializerHooks.instance
end
|