Class: Nginx::Builder::SiteHttp

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

Instance Attribute Summary

Attributes inherited from Site

#user

Attributes inherited from Base

#domain_name, #server_blocks

Instance Method Summary collapse

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

#saveObject



123
124
125
126
127
# File 'lib/shared_infrastructure/nginx/builder.rb', line 123

def save
  result = super
  https_reminder_message
  result
end