Sha256: 2fbce2d02d0e8e3a1f4ae73f746802a99cf408ccf94dfd63f898e81111394695

Contents?: true

Size: 736 Bytes

Versions: 1

Compression:

Stored size: 736 Bytes

Contents

# frozen_string_literal: true

# The Sys modules serves as a namespace only.
module Sys
  # The Admin class provides a unified, cross platform replacement for the Etc module.
  class Admin
    # The version of the sys-admin library.
    VERSION = '1.8.2'

    private_class_method :new
  end
end

# Stub to require the correct based on platform
require 'rbconfig'

case RbConfig::CONFIG['host_os']
  when /linux/i
    require 'linux/sys/admin'
  when /sunos|solaris/i
    require 'sunos/sys/admin'
  when /cygwin|mingw|mswin|windows|dos/i
    require 'windows/sys/admin'
  when /darwin|mach/i
    require 'darwin/sys/admin'
  when /bsd/i
    require 'bsd/sys/admin'
  else
    require 'unix/sys/admin'
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
sys-admin-1.8.2-universal-mingw32 lib/sys/admin.rb