Module: LocalDevelopmentGateway
- Defined in:
- lib/local_development_gateway.rb,
lib/local_development_gateway/version.rb
Defined Under Namespace
Classes: CLI, Client, Docker, DockerError, Error
Constant Summary
collapse
- PROJECT_NAME =
"local-gateway"
- NETWORK_NAME =
"local-gateway"
- SERVICE_NAME =
"gateway"
- GATEWAY_LABEL =
"local-gateway"
- 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.1.2"
Class Method Summary
collapse
Class Method Details
.ensure_running(*args) ⇒ Object
288
289
290
|
# File 'lib/local_development_gateway.rb', line 288
def ensure_running(*args)
Client.new.ensure_running(*args)
end
|
.logs(*args) ⇒ Object
308
309
310
|
# File 'lib/local_development_gateway.rb', line 308
def logs(*args)
Client.new.logs(*args, follow: true)
end
|
.ready? ⇒ Boolean
300
301
302
|
# File 'lib/local_development_gateway.rb', line 300
def ready?
Client.new.ready?
end
|
.start(*args) ⇒ Object
296
297
298
|
# File 'lib/local_development_gateway.rb', line 296
def start(*args)
ensure_running(*args)
end
|
.status ⇒ Object
304
305
306
|
# File 'lib/local_development_gateway.rb', line 304
def status
Client.new.status
end
|
.with_running(ensure_running: true, &block) ⇒ Object
292
293
294
|
# File 'lib/local_development_gateway.rb', line 292
def with_running(ensure_running: true, &block)
Client.new.with_running(ensure_running: ensure_running, &block)
end
|