Refactor and document SystemConfig
.
This commit is contained in:
parent
72419630b4
commit
e2c9e6d3c2
@ -3,7 +3,7 @@
|
|||||||
require "formula"
|
require "formula"
|
||||||
require "os/linux/glibc"
|
require "os/linux/glibc"
|
||||||
|
|
||||||
class SystemConfig
|
module SystemConfig
|
||||||
class << self
|
class << self
|
||||||
def host_glibc_version
|
def host_glibc_version
|
||||||
version = OS::Linux::Glibc.system_version
|
version = OS::Linux::Glibc.system_version
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
class SystemConfig
|
module SystemConfig
|
||||||
class << self
|
class << self
|
||||||
undef describe_java, describe_homebrew_ruby
|
undef describe_java, describe_homebrew_ruby
|
||||||
|
|
||||||
|
@ -5,7 +5,10 @@ require "software_spec"
|
|||||||
require "development_tools"
|
require "development_tools"
|
||||||
require "extend/ENV"
|
require "extend/ENV"
|
||||||
|
|
||||||
class SystemConfig
|
# Helper module for querying information about the system configuration.
|
||||||
|
#
|
||||||
|
# @api private
|
||||||
|
module SystemConfig
|
||||||
class << self
|
class << self
|
||||||
def clang
|
def clang
|
||||||
@clang ||= if DevelopmentTools.installed?
|
@clang ||= if DevelopmentTools.installed?
|
||||||
|
Loading…
x
Reference in New Issue
Block a user