Class: EacDocker::Images::Templatized

Inherits:
Base
  • Object
show all
Defined in:
lib/eac_docker/images/templatized.rb

Instance Method Summary collapse

Methods inherited from Base

#container

Instance Method Details

#coded_image(provide_dir) ⇒ Object



21
22
23
# File 'lib/eac_docker/images/templatized.rb', line 21

def coded_image(provide_dir)
  ::EacDocker::Images::Coded.new(provide_dir)
end

#provideObject



14
15
16
17
18
19
# File 'lib/eac_docker/images/templatized.rb', line 14

def provide
  ::EacRubyUtils::Fs::Temp.on_directory do |provide_dir|
    template.apply(self, provide_dir)
    coded_image(provide_dir).tag(tag).provide
  end
end