Module: LocalDevelopmentGateway
- Defined in:
- lib/local_development_gateway.rb,
lib/local_development_gateway/version.rb,
lib/local_development_gateway/database_router.rb,
lib/local_development_gateway/database_router/wire.rb,
lib/local_development_gateway/database_router/docker_api.rb,
lib/local_development_gateway/database_router/tds/message.rb,
lib/local_development_gateway/database_router/docker_routes.rb,
lib/local_development_gateway/database_router/tds/tls_byte_reader.rb,
lib/local_development_gateway/database_router/tds/tls_client_hello.rb,
lib/local_development_gateway/database_router/drivers/sql_server_driver.rb,
lib/local_development_gateway/database_router/drivers/postgre_sql_driver.rb,
lib/local_development_gateway/database_router/drivers/postgre_sql_certificate.rb
Defined Under Namespace
Classes: CLI, Client, DatabaseRouter, Docker, DockerError, Error
Constant Summary
collapse
- PROJECT_NAME =
"local-gateway"
- NETWORK_NAME =
"local-gateway"
- SERVICE_NAMES =
%w[gateway database-router].freeze
- GATEWAY_LABEL =
"local-gateway"
- OBSOLETE_SERVICE_NAMES =
%w[dns tds-router].freeze
- ASSET_ROOT =
File.expand_path("..", __dir__)
- COMPOSE_FILE =
File.join(ASSET_ROOT, "docker-compose.yml")
- TRAEFIK_CONFIG_FILE =
File.join(ASSET_ROOT, "config", "traefik.yml")
- VERSION =
"0.2.0"
Class Method Summary
collapse
Class Method Details
.ensure_running(*args) ⇒ Object
303
304
305
|
# File 'lib/local_development_gateway.rb', line 303
def ensure_running(*args)
Client.new.ensure_running(*args)
end
|
.logs(*args) ⇒ Object
323
324
325
|
# File 'lib/local_development_gateway.rb', line 323
def logs(*args)
Client.new.logs(*args, follow: true)
end
|
.ready? ⇒ Boolean
315
316
317
|
# File 'lib/local_development_gateway.rb', line 315
def ready?
Client.new.ready?
end
|
.start(*args) ⇒ Object
311
312
313
|
# File 'lib/local_development_gateway.rb', line 311
def start(*args)
ensure_running(*args)
end
|
.status ⇒ Object
319
320
321
|
# File 'lib/local_development_gateway.rb', line 319
def status
Client.new.status
end
|
.with_running(ensure_running: true, &block) ⇒ Object
307
308
309
|
# File 'lib/local_development_gateway.rb', line 307
def with_running(ensure_running: true, &block)
Client.new.with_running(ensure_running: ensure_running, &block)
end
|