Class: Nginx::Builder::SiteHttp
- Defined in:
- lib/shared_infrastructure/nginx/builder.rb
Instance Attribute Summary
Attributes inherited from Site
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(domain_name, user, _certificate_domain = nil) ⇒ SiteHttp
constructor
A new instance of SiteHttp.
- #save ⇒ Object
Methods inherited from Base
#https_reminder_message, #to_s
Constructor Details
#initialize(domain_name, user, _certificate_domain = nil) ⇒ SiteHttp
Returns a new instance of SiteHttp.
112 113 114 115 116 117 118 119 120 121 |
# File 'lib/shared_infrastructure/nginx/builder.rb', line 112 def initialize(domain_name, user, _certificate_domain = nil) super(domain_name, user, Nginx::StaticServerBlock.new( server: Nginx::Site.new(domain_name, user), listen: Nginx::ListenHttp.new, location: Nginx::Location.new ) ) end |
Instance Method Details
#save ⇒ Object
123 124 125 126 127 |
# File 'lib/shared_infrastructure/nginx/builder.rb', line 123 def save result = super result end |