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