Method: Inspec::Resources::ApacheConf#conf_dir

Defined in:
lib/resources/apache_conf.rb

#conf_dirObject



131
132
133
134
135
136
137
138
139
140
141
# File 'lib/resources/apache_conf.rb', line 131

def conf_dir
  if inspec.os.debian?
    File.dirname(conf_path)
  else
    # On RHEL-based systems, the configuration is usually in a /conf directory
    # that contains the primary config file. We assume the "config path" is the
    # directory that contains the /conf directory, such as /etc/httpd, so that
    # the conf.d directory can be properly located.
    Pathname.new(File.dirname(conf_path)).parent.to_s
  end
end