lib/hitcher/providers/docker/template.rb in Hitcher-0.1.2 vs lib/hitcher/providers/docker/template.rb in Hitcher-0.1.3
- old
+ new
@@ -13,10 +13,11 @@
dest_root = Dir.getwd if val[:dest_root].nil? or val[:dest_root].empty?
case temp
when :dockerfile
path = File.join(File.dirname(__FILE__),"templates","Dockerfile.erb")
- bind_template(path, File.join(dest_root,"Dockerfile"), val)
+ ccont = val[:dockerfile].join("\n")
+ bind_template(path, File.join(dest_root,"Dockerfile"), { dockerfile_content: ccont } )
else
if Antrapol::ToolRack::RuntimeUtils.on_windows?
raise Hitcher::Error, "Not ready yet"
else
case temp