class Inspec::Resources::NginxConfLocation
Attributes
params[R]
parent[R]
Public Class Methods
new(params, parent)
click to toggle source
# File lib/inspec/resources/nginx_conf.rb, line 258 def initialize(params, parent) @parent = parent @params = params || {} end
Public Instance Methods
to_s()
click to toggle source
# File lib/inspec/resources/nginx_conf.rb, line 263 def to_s location = Array(params["_"]).join(" ") # go three levels up: 1. to the server entry, 2. http entry and 3. to the root nginx conf # TODO: fix parent.parent.parent @parent.parent.parent.to_s + ", location #{location.inspect}" end
Also aliased as: inspect