Class: Makit::Apache
- Inherits:
-
Object
- Object
- Makit::Apache
- Defined in:
- lib/makit/apache.rb
Overview
This class provide methods for working with the system Environment.
Class Method Summary collapse
Class Method Details
.document_root ⇒ Object
21 22 23 24 25 26 |
# File 'lib/makit/apache.rb', line 21 def self.document_root # default on windows: C:\Apache24\htdocs # default on linux: /var/www/html # default on mac: /Library/WebServer/Documents nil end |
.server_root ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/makit/apache.rb', line 8 def self.server_root os = Makit::Environment.get_os { "windows" => "C:\\Apache24", "linux" => "/etc/apache2", "mac" => "/private/etc/apache2", }[os] # default on windows: C:\Apache24 # default on linux: /etc/apache2 # default on mac: /private/etc/apache2 # nil end |