Sha256: 3033053027ec30064e1762fb01cdec8c16896696616ad4ff5bea33148be2cfeb
Contents?: true
Size: 381 Bytes
Versions: 1
Compression:
Stored size: 381 Bytes
Contents
require 'erb' require 'hako/front' module Hako module Fronts class Nginx < Front def generate_config(app_port) listen_spec = "app:#{app_port}" ERB.new(File.read(nginx_conf_erb), nil, '-').result(binding) end private def nginx_conf_erb File.expand_path('../../templates/nginx.conf.erb', __FILE__) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
hako-0.1.0 | lib/hako/fronts/nginx.rb |