Module: Hostess
- Defined in:
- lib/hostess.rb,
lib/hostess/options.rb,
lib/hostess/virtual_host.rb
Defined Under Namespace
Classes: Options, VirtualHost
Class Attribute Summary collapse
Class Method Summary
collapse
Class Attribute Details
.apache_config_dir ⇒ Object
19
20
21
|
# File 'lib/hostess.rb', line 19
def apache_config_dir
@apache_config_dir || File.join('/', 'etc', 'apache2')
end
|
.apache_log_dir ⇒ Object
31
32
33
|
# File 'lib/hostess.rb', line 31
def apache_log_dir
@apache_log_dir || File.join('/', 'var', 'log', 'apache2')
end
|
Class Method Details
.apache_config ⇒ Object
23
24
25
|
# File 'lib/hostess.rb', line 23
def apache_config
File.join(apache_config_dir, 'httpd.conf')
end
|
.disable_sudo! ⇒ Object
39
40
41
|
# File 'lib/hostess.rb', line 39
def disable_sudo!
@disable_sudo = true
end
|
.script_name ⇒ Object
15
16
17
|
# File 'lib/hostess.rb', line 15
def script_name
'hostess'
end
|
.use_sudo? ⇒ Boolean
43
44
45
|
# File 'lib/hostess.rb', line 43
def use_sudo?
@disable_sudo ? false : true
end
|
.vhosts_dir ⇒ Object
27
28
29
|
# File 'lib/hostess.rb', line 27
def vhosts_dir
File.join(apache_config_dir, "#{script_name}_vhosts")
end
|
.vhosts_log_dir ⇒ Object
35
36
37
|
# File 'lib/hostess.rb', line 35
def vhosts_log_dir
File.join(apache_log_dir, "#{script_name}_vhosts")
end
|