module Dockerun module Template class TemplateEngine def self.template_root File.join(File.dirname(__FILE__),"..","..","..","template") end def self.available_templates avail = Dir.glob(File.join(template_root,"Dockerfile_*.erb")) avail.map! { |f| name = File.basename(f,".erb") name.gsub("Dockerfile_","") } end end end end