Class: Indocker::ContainerMetadataFactory
- Inherits:
-
Object
- Object
- Indocker::ContainerMetadataFactory
- Includes:
- SmartIoC::Iocify
- Defined in:
- lib/indocker/container/container_metadata_factory.rb
Instance Method Summary collapse
Instance Method Details
#create(name, &definition) ⇒ Object
12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
# File 'lib/indocker/container/container_metadata_factory.rb', line 12 def create(name, &definition) context = Indocker::DSLContext.new( images: , networks: , containers: , container_name: name ) directives = container_evaluator.evaluate(context, &definition) Indocker::ContainerMetadata.new( name: name.to_s, directives: directives ) end |