class Inspec::Resources::Apache
Attributes
conf_dir[R]
conf_path[R]
service[R]
user[R]
Public Class Methods
new()
click to toggle source
# File lib/inspec/resources/apache.rb, line 27 def initialize Inspec.deprecate(:resource_apache, "The apache resource is deprecated") 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
Public Instance Methods
to_s()
click to toggle source
# File lib/inspec/resources/apache.rb, line 43 def to_s "Apache Environment" end