Class: Indocker::ImageMetadataFactory
- Inherits:
-
Object
- Object
- Indocker::ImageMetadataFactory
- Includes:
- SmartIoC::Iocify
- Defined in:
- lib/indocker/image/image_metadata_factory.rb
Instance Method Summary collapse
Instance Method Details
#create(repo, tag: Indocker::ImageMetadata::DEFAULT_TAG, &definition) ⇒ Object
10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/indocker/image/image_metadata_factory.rb', line 10 def create(repo, tag: Indocker::ImageMetadata::DEFAULT_TAG, &definition) context = Indocker::DSLContext.new( build_dir: build_dir(repo), root_dir: config.root ) directives = image_evaluator.evaluate(context, &definition) Indocker::ImageMetadata.new( repo: repo.intern, tag: tag.intern, directives: directives, build_dir: build_dir(repo) ) end |