Method: Inspec::Resources::Apache#initialize

Defined in:
lib/resources/apache.rb

#initializeApache

Returns a new instance of Apache.



12
13
14
15
16
17
18
19
20
21
22
23
24
# File 'lib/resources/apache.rb', line 12

def initialize
  if inspec.os.debian?
    @service = 'apache2'
    @conf_dir = '/etc/apache2/'
    @conf_path = File.join @conf_dir, 'apache2.conf'
    @user = 'www-data'
  else
    @service = 'httpd'
    @conf_dir = '/etc/httpd/'
    @conf_path = File.join @conf_dir, '/conf/httpd.conf'
    @user = 'apache'
  end
end