lib/eac_docker/images/templatized.rb in eac_docker-0.4.2 vs lib/eac_docker/images/templatized.rb in eac_docker-0.5.0
- old
+ new
@@ -19,19 +19,25 @@
def provide
::EacRubyUtils::Fs::Temp.on_directory do |provide_dir|
begin
self.provide_dir = provide_dir
- template.apply(self, provide_dir)
+ write_in_provide_dir
coded_image(provide_dir).tag(tag).provide
ensure
self.provide_dir = nil
end
end
end
def coded_image(provide_dir)
::EacDocker::Images::Coded.new(provide_dir)
+ end
+
+ protected
+
+ def write_in_provide_dir
+ template.apply(self, provide_dir)
end
private
attr_writer :provide_dir