lib/odania/varnish/generators/generate_sites_vcl.rb in odania-0.0.17 vs lib/odania/varnish/generators/generate_sites_vcl.rb in odania-0.0.18
- old
+ new
@@ -1,6 +1,7 @@
require_relative 'generate_site_vcl'
+require_relative 'generate_site_assets_vcl'
module Odania
class GenerateSitesVcl
attr_accessor :domains, :template, :default_subdomains
@@ -18,9 +19,12 @@
File.write("#{out_dir}/sites.vcl", self.render)
Dir.mkdir "#{out_dir}/sites" unless File.directory? "#{out_dir}/sites"
self.domains.each_pair do |domain_name, domain|
out = GenerateSiteVcl.new(domain, default_subdomains)
+ out.write out_dir
+
+ out = GenerateSiteAssetsVcl.new(domain, default_subdomains)
out.write out_dir
end
end
end
end