Sha256: 115ac7c4e6daac5360ac5f61f50d260a766de15c781e536ac3c525cc2c5741d3

Contents?: true

Size: 772 Bytes

Versions: 25

Compression:

Stored size: 772 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

25 entries across 25 versions & 1 rubygems

Version Path
makit-0.0.57 lib/makit/apache.rb
makit-0.0.53 lib/makit/apache.rb
makit-0.0.52 lib/makit/apache.rb
makit-0.0.51 lib/makit/apache.rb
makit-0.0.50 lib/makit/apache.rb
makit-0.0.49 lib/makit/apache.rb
makit-0.0.47 lib/makit/apache.rb
makit-0.0.46 lib/makit/apache.rb
makit-0.0.45 lib/makit/apache.rb
makit-0.0.44 lib/makit/apache.rb
makit-0.0.42 lib/makit/apache.rb
makit-0.0.41 lib/makit/apache.rb
makit-0.0.35 lib/makit/apache.rb
makit-0.0.34 lib/makit/apache.rb
makit-0.0.33 lib/makit/apache.rb
makit-0.0.32 lib/makit/apache.rb
makit-0.0.31 lib/makit/apache.rb
makit-0.0.30 lib/makit/apache.rb
makit-0.0.29 lib/makit/apache.rb
makit-0.0.28 lib/makit/apache.rb