Class: Wellcar::Templates::ReverseProxyConf

Inherits:
Base
  • Object
show all
Defined in:
lib/wellcar/templates/reverse_proxy_conf.rb

Instance Method Summary collapse

Methods inherited from Base

#exist?, #render, #write

Constructor Details

#initialize(domain_name) ⇒ ReverseProxyConf

Returns a new instance of ReverseProxyConf.



6
7
8
9
10
11
# File 'lib/wellcar/templates/reverse_proxy_conf.rb', line 6

def initialize(domain_name)
  super "reverse-proxy.conf"
  with_attributes domain_name: domain_name
  with_template "reverse-proxy.conf.erb"
  within "config/nginx"
end