Class: Nginx::Builder::SiteHttp
- Defined in:
- lib/shared_infrastructure/nginx/builder.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(user, _certificate_domain = nil, domain: nil) ⇒ SiteHttp
constructor
A new instance of SiteHttp.
- #save ⇒ Object
Methods inherited from Site
Methods inherited from Base
#https_reminder_message, #to_s
Constructor Details
#initialize(user, _certificate_domain = nil, domain: nil) ⇒ SiteHttp
Returns a new instance of SiteHttp.
127 128 129 130 131 132 133 134 135 136 |
# File 'lib/shared_infrastructure/nginx/builder.rb', line 127 def initialize(user, _certificate_domain = nil, domain: nil) super(user, Nginx::ServerBlock.new( server: Nginx::StaticServer.new(domain: domain), listen: Nginx::ListenHttp.new, location: Nginx::Location.new ), domain: domain ) end |
Instance Method Details
#save ⇒ Object
138 139 140 141 142 |
# File 'lib/shared_infrastructure/nginx/builder.rb', line 138 def save result = super result end |