Class: HAST::Apache

Inherits:
Object
  • Object
show all
Defined in:
lib/hast/apache.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(config) ⇒ Apache

Returns a new instance of Apache.



5
6
7
8
9
10
11
12
13
14
15
16
# File 'lib/hast/apache.rb', line 5

def initialize(config)
  @config = config

  config_files = find_config_files(@config['apache']['config'])

  domains = find_domains_in_config(config_files)
  domains << find_extra_domains if @config['apache']['extra_domains_directory']
  domains.flatten!
  domains.uniq!

  @domains = domains
end

Instance Attribute Details

#domainsObject (readonly)

Returns the value of attribute domains.



3
4
5
# File 'lib/hast/apache.rb', line 3

def domains
  @domains
end