Sha256: e2b11c2dcd3e92d1d3557d4f96efb5315b7d937276371cead11fd0ecdd38803c
Contents?: true
Size: 334 Bytes
Versions: 17
Compression:
Stored size: 334 Bytes
Contents
module Odania class GenerateDefaultVcl attr_accessor :template def initialize self.template = File.new("#{BASE_DIR}/templates/varnish/default.vcl.erb").read end def render Erubis::Eruby.new(self.template).result(binding) end def write(out_dir) File.write("#{out_dir}/default.vcl", self.render) end end end
Version data entries
17 entries across 17 versions & 1 rubygems