Sha256: 647f2385e33ed48937f279464eace08bb77030c7694711087b86109d05a19efc

Contents?: true

Size: 804 Bytes

Versions: 29

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

29 entries across 29 versions & 1 rubygems

Version Path
makit-0.0.58 lib/makit/apache.rb
makit-0.0.56 lib/makit/apache.rb
makit-0.0.55 lib/makit/apache.rb
makit-0.0.54 lib/makit/apache.rb
makit-0.0.48 lib/makit/apache.rb
makit-0.0.40 lib/makit/apache.rb
makit-0.0.39 lib/makit/apache.rb
makit-0.0.38 lib/makit/apache.rb
makit-0.0.37 lib/makit/apache.rb
makit-0.0.36 lib/makit/apache.rb
makit-0.0.26 lib/makit/apache.rb
makit-0.0.25 lib/makit/apache.rb
makit-0.0.24 lib/makit/apache.rb
makit-0.0.23 lib/makit/apache.rb
makit-0.0.22 lib/makit/apache.rb
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