Class: Nginx::Builder::SiteHttp

Inherits:
Site
  • Object
show all
Defined in:
lib/shared_infrastructure/nginx/builder.rb

Instance Attribute Summary

Attributes inherited from Base

#domain, #server_blocks

Instance Method Summary collapse

Methods inherited from Site

#user

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

#saveObject



138
139
140
141
142
# File 'lib/shared_infrastructure/nginx/builder.rb', line 138

def save
  result = super
  https_reminder_message
  result
end