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

Version Path
odania-0.0.32 lib/odania/varnish/generators/generate_default_vcl.rb
odania-0.0.31 lib/odania/varnish/generators/generate_default_vcl.rb
odania-0.0.30 lib/odania/varnish/generators/generate_default_vcl.rb
odania-0.0.29 lib/odania/varnish/generators/generate_default_vcl.rb
odania-0.0.28 lib/odania/varnish/generators/generate_default_vcl.rb
odania-0.0.27 lib/odania/varnish/generators/generate_default_vcl.rb
odania-0.0.26 lib/odania/varnish/generators/generate_default_vcl.rb
odania-0.0.25 lib/odania/varnish/generators/generate_default_vcl.rb
odania-0.0.24 lib/odania/varnish/generators/generate_default_vcl.rb
odania-0.0.23 lib/odania/varnish/generators/generate_default_vcl.rb
odania-0.0.22 lib/odania/varnish/generators/generate_default_vcl.rb
odania-0.0.21 lib/odania/varnish/generators/generate_default_vcl.rb
odania-0.0.20 lib/odania/varnish/generators/generate_default_vcl.rb
odania-0.0.19 lib/odania/varnish/generators/generate_default_vcl.rb
odania-0.0.18 lib/odania/varnish/generators/generate_default_vcl.rb
odania-0.0.17 lib/odania/varnish/generators/generate_default_vcl.rb
odania-0.0.16 lib/odania/varnish/generators/generate_default_vcl.rb