~gandelman-a/ubuntu/precise/facter/merge922788

« back to all changes in this revision

Viewing changes to lib/facter/lsb.rb

  • Committer: Package Import Robot
  • Author(s): Adam Gandelman
  • Date: 2011-10-18 10:32:42 UTC
  • mfrom: (1.3.3 upstream)
  • mto: This revision was merged to the branch mainline in revision 16.
  • Revision ID: package-import@ubuntu.com-20111018103242-ag8i8vejfp8v7b1b
Tags: upstream-1.6.1
ImportĀ upstreamĀ versionĀ 1.6.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# Fact: lsb
 
2
#
 
3
# Purpose: Return Linux Standard Base information for the host.
 
4
#
 
5
# Resolution:
 
6
#   Uses the lsb_release system command and parses the output with a series of
 
7
#   regular expressions.
 
8
#
 
9
# Caveats:
 
10
#   Only works on Linux (and the kfreebsd derivative) systems.
 
11
#   Requires the lsb_release program, which may not be installed by default.
 
12
#   Also is as only as accurate as that program outputs.
 
13
 
1
14
## lsb.rb
2
15
## Facts related to Linux Standard Base (LSB)
3
 
##
4
 
## This program is free software; you can redistribute it and/or
5
 
## modify it under the terms of the GNU General Public License
6
 
## as published by the Free Software Foundation (version 2 of the License)
7
 
## This program is distributed in the hope that it will be useful,
8
 
## but WITHOUT ANY WARRANTY; without even the implied warranty of
9
 
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
10
 
## GNU General Public License for more details.
11
 
## You should have received a copy of the GNU General Public License
12
 
## along with this program; if not, write to the Free Software
13
 
## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston MA  02110-1301 USA
14
 
##
15
16
 
16
17
{  "LSBRelease"         => %r{^LSB Version:\t(.*)$},
17
18
   "LSBDistId"          => %r{^Distributor ID:\t(.*)$},