Class: HAST::Apache
- Inherits:
-
Object
- Object
- HAST::Apache
- Defined in:
- lib/hast/apache.rb
Instance Attribute Summary collapse
-
#domains ⇒ Object
readonly
Returns the value of attribute domains.
Instance Method Summary collapse
-
#initialize(config) ⇒ Apache
constructor
A new instance of Apache.
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
#domains ⇒ Object (readonly)
Returns the value of attribute domains.
3 4 5 |
# File 'lib/hast/apache.rb', line 3 def domains @domains end |