class Nginx::AccelLocation

Attributes

accel[R]
domain[R]
domain_name[R]

Public Class Methods

new(domain_name, accel, domain: nil) click to toggle source
Calls superclass method Nginx::Location::new
# File lib/shared_infrastructure/nginx/location.rb, line 21
def initialize(domain_name, accel, domain: nil)
  super(location)
  @domain = domain
  @domain_name = domain_name
  @accel = accel
end

Public Instance Methods

to_s(level = 0) click to toggle source
# File lib/shared_infrastructure/nginx/location.rb, line 28
def to_s(level = 0)
  Lines.new("location #{accel.location} {",
    "  internal;",
    "  alias #{accel.alias_string};",
    "}").format(level)
end