class Inspec::Resources::NginxConfHttp

Attributes

entries[R]

Public Class Methods

new(params, parent) click to toggle source
# File lib/inspec/resources/nginx_conf.rb, line 154
def initialize(params, parent)
  @parent = parent
  @entries = (params || []).map { |x| NginxConfHttpEntry.new(x, parent) }
end

Public Instance Methods

inspect()
Alias for: to_s
locations() click to toggle source
# File lib/inspec/resources/nginx_conf.rb, line 163
def locations
  servers.map(&:locations).flatten
end
servers() click to toggle source
# File lib/inspec/resources/nginx_conf.rb, line 159
def servers
  @entries.map(&:servers).flatten
end
to_s() click to toggle source
# File lib/inspec/resources/nginx_conf.rb, line 167
def to_s
  @parent.to_s + ", http entries"
end
Also aliased as: inspect