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

Version Path
odania-0.0.32 lib/odania/varnish/generators/generate_final_vcl.rb
odania-0.0.31 lib/odania/varnish/generators/generate_final_vcl.rb
odania-0.0.30 lib/odania/varnish/generators/generate_final_vcl.rb
odania-0.0.29 lib/odania/varnish/generators/generate_final_vcl.rb
odania-0.0.28 lib/odania/varnish/generators/generate_final_vcl.rb
odania-0.0.27 lib/odania/varnish/generators/generate_final_vcl.rb
odania-0.0.26 lib/odania/varnish/generators/generate_final_vcl.rb
odania-0.0.25 lib/odania/varnish/generators/generate_final_vcl.rb
odania-0.0.24 lib/odania/varnish/generators/generate_final_vcl.rb
odania-0.0.23 lib/odania/varnish/generators/generate_final_vcl.rb
odania-0.0.22 lib/odania/varnish/generators/generate_final_vcl.rb
odania-0.0.21 lib/odania/varnish/generators/generate_final_vcl.rb
odania-0.0.20 lib/odania/varnish/generators/generate_final_vcl.rb