Sha256: 647f2385e33ed48937f279464eace08bb77030c7694711087b86109d05a19efc

Contents?: true

Size: 804 Bytes

Versions: 34

Compression:

Stored size: 804 Bytes

Contents

# frozen_string_literal: true

# This module provides classes for the Makit gem.
module Makit
  # This class provide methods for working with the system Environment.
  #
  class Apache
    def self.server_root
      os = Makit::Environment::get_os
      if os == "windows"
        "C:\\Apache24"
      elsif os == "linux"
        "/etc/apache2"
      elsif os == "mac"
        "/private/etc/apache2"
      else
        nil
      end
      # default on windows: C:\Apache24
      # default on linux: /etc/apache2
      # default on mac: /private/etc/apache2
      #nil
    end

    def self.document_root
      # default on windows: C:\Apache24\htdocs
      # default on linux: /var/www/html
      # default on mac: /Library/WebServer/Documents
      nil
    end
  end
end

Version data entries

34 entries across 34 versions & 1 rubygems

Version Path
makit-0.0.21 lib/makit/apache.rb
makit-0.0.20 lib/makit/apache.rb
makit-0.0.19 lib/makit/apache.rb
makit-0.0.16 lib/makit/apache.rb
makit-0.0.13 lib/makit/apache.rb
makit-0.0.12 lib/makit/apache.rb
makit-0.0.11 lib/makit/apache.rb
makit-0.0.10 lib/makit/apache.rb
makit-0.0.9 lib/makit/apache.rb
makit-0.0.8 lib/makit/apache.rb
makit-0.0.7 lib/makit/apache.rb
makit-0.0.6 lib/makit/apache.rb
makit-0.0.1 lib/makit/apache.rb
makit-0.0.0 lib/makit/apache.rb