~ubuntu-branches/ubuntu/trusty/facter/trusty

« back to all changes in this revision

Viewing changes to lib/facter/macosx.rb

  • Committer: Bazaar Package Importer
  • Author(s): Andrew Pollock, Nigel Kersten, Andrew Pollock
  • Date: 2009-04-13 15:20:21 UTC
  • mfrom: (1.1.5 upstream) (3.1.2 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090413152021-t3uagjamr3ee4njl
Tags: 1.5.4-1
[ Nigel Kersten ]
* New upstream release
* Switch maintainer to pkg-puppet-devel list
* Modify uploaders
* Update watch file regexp to exclude release canditate tarballs
* Use upstream install.rb script to build rather than copying manually

[ Andrew Pollock ]
* debian/control: add libopenssl-ruby to build dependencies
* debian/control: bump Standards-Version (no changes)
* debian/compat: increase to 5
* debian/control: add pciutils and ${misc:Depends} to dependencies

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
require 'facter/util/macosx'
26
26
 
27
27
if Facter.value(:kernel) == "Darwin"
28
 
    Facter::Macosx.hardware_overview.each do |fact, value|
29
 
        Facter.add("sp_#{fact}") do
30
 
            confine :kernel => :darwin
31
 
            setcode do
32
 
                value.to_s
33
 
            end
34
 
        end
35
 
    end
36
 
 
37
 
    Facter::Macosx.os_overview.each do |fact, value|
38
 
        Facter.add("sp_#{fact}") do
39
 
            confine :kernel => :darwin
40
 
            setcode do
41
 
                value.to_s
42
 
            end
43
 
        end
44
 
    end
45
 
 
46
 
    Facter::Macosx.sw_vers.each do |fact, value|
 
28
    Facter::Util::Macosx.hardware_overview.each do |fact, value|
 
29
        Facter.add("sp_#{fact}") do
 
30
            confine :kernel => :darwin
 
31
            setcode do
 
32
                value.to_s
 
33
            end
 
34
        end
 
35
    end
 
36
 
 
37
    Facter::Util::Macosx.os_overview.each do |fact, value|
 
38
        Facter.add("sp_#{fact}") do
 
39
            confine :kernel => :darwin
 
40
            setcode do
 
41
                value.to_s
 
42
            end
 
43
        end
 
44
    end
 
45
 
 
46
    Facter::Util::Macosx.sw_vers.each do |fact, value|
47
47
        Facter.add(fact) do
48
48
            confine :kernel => :darwin
49
49
            setcode do