Method: Inspec::Resources::NginxConfLocation#to_s

Defined in:
lib/inspec/resources/nginx_conf.rb

#to_sObject Also known as: inspect



215
216
217
218
219
220
# File 'lib/inspec/resources/nginx_conf.rb', line 215

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