class Nginx::RedirectLocation
Public Class Methods
new()
click to toggle source
Calls superclass method
Nginx::Location::new
# File lib/shared_infrastructure/nginx/location.rb, line 126 def initialize super @location = nil end
Public Instance Methods
to_s(level = 0)
click to toggle source
# 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