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.
126 127 128 129 |
# File 'lib/shared_infrastructure/nginx/location.rb', line 126 def initialize super @location = nil end |
Instance Method Details
#to_s(level = 0) ⇒ Object
131 132 133 |
# File 'lib/shared_infrastructure/nginx/location.rb', line 131 def to_s(level = 0) Lines.new("return 301 https://$server_name/$request_uri;").format(level) end |