Class: Orchestration::DockerCompose::Services
- Inherits:
-
Object
- Object
- Orchestration::DockerCompose::Services
- Defined in:
- lib/orchestration/docker_compose/services.rb
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Services
constructor
A new instance of Services.
- #services ⇒ Object
- #structure ⇒ Object
Constructor Details
#initialize(options = {}) ⇒ Services
Returns a new instance of Services.
6 7 8 9 10 11 12 |
# File 'lib/orchestration/docker_compose/services.rb', line 6 def initialize( = {}) @configurations = { 'database' => .fetch(:database, nil), 'mongo' => .fetch(:mongo, nil), 'rabbitmq' => .fetch(:rabbitmq, nil) } end |
Instance Method Details
#services ⇒ Object
18 19 20 |
# File 'lib/orchestration/docker_compose/services.rb', line 18 def services Hash[filtered_services] end |
#structure ⇒ Object
14 15 16 |
# File 'lib/orchestration/docker_compose/services.rb', line 14 def structure { 'version' => '3.7', 'services' => services } end |