Class: Nginx::RedirectLocation
- Defined in:
- lib/shared_infrastructure/nginx/location.rb
Instance Method Summary collapse
-
#initialize ⇒ RedirectLocation
constructor
A new instance of RedirectLocation.
- #to_s(level = 0) ⇒ Object
Constructor Details
#initialize ⇒ RedirectLocation
Returns a new instance of RedirectLocation.
89 90 91 92 |
# File 'lib/shared_infrastructure/nginx/location.rb', line 89 def initialize super @location = nil end |
Instance Method Details
#to_s(level = 0) ⇒ Object
94 95 96 |
# File 'lib/shared_infrastructure/nginx/location.rb', line 94 def to_s(level = 0) Lines.new("return 301 https://$server_name/$request_uri;").format(level) end |