Class: TinSpitz
- Inherits:
-
Object
- Object
- TinSpitz
- Defined in:
- lib/tinspitz.rb
Class Method Summary collapse
- .arch ⇒ Object
- .current_user ⇒ Object
- .domain ⇒ Object
- .domainname ⇒ Object
- .family ⇒ Object
- .hardwaremodel ⇒ Object
- .hostname ⇒ Object
- .interfaces ⇒ Object
- .isvirtual ⇒ Object
- .kernel_release ⇒ Object
- .kernelmajorv ⇒ Object
- .macaddress ⇒ Object
- .netmask ⇒ Object
- .physical_processor_count ⇒ Object
- .processor_count ⇒ Object
- .rubyversion ⇒ Object
- .swap ⇒ Object
- .swapfree ⇒ Object
- .system_description ⇒ Object
-
.system_version ⇒ Object
I suggest you look at test/test_tinspitz.rb for examples, there are some good ones there.
- .timezone ⇒ Object
- .uptime ⇒ Object
Class Method Details
.arch ⇒ Object
89 90 91 |
# File 'lib/tinspitz.rb', line 89 def self.arch Facter.architecture end |
.current_user ⇒ Object
57 58 59 |
# File 'lib/tinspitz.rb', line 57 def self.current_user Facter.id end |
.domain ⇒ Object
33 34 35 |
# File 'lib/tinspitz.rb', line 33 def self.domain Facter.domain end |
.domainname ⇒ Object
53 54 55 |
# File 'lib/tinspitz.rb', line 53 def self.domainname Facter.fqdn end |
.family ⇒ Object
21 22 23 |
# File 'lib/tinspitz.rb', line 21 def self.family Facter.osfamily end |
.hardwaremodel ⇒ Object
61 62 63 |
# File 'lib/tinspitz.rb', line 61 def self.hardwaremodel Facter.hardwaremodel end |
.hostname ⇒ Object
49 50 51 |
# File 'lib/tinspitz.rb', line 49 def self.hostname Facter.hostname end |
.interfaces ⇒ Object
37 38 39 |
# File 'lib/tinspitz.rb', line 37 def self.interfaces Facter.interfaces end |
.isvirtual ⇒ Object
17 18 19 |
# File 'lib/tinspitz.rb', line 17 def self.isvirtual Facter.is_virtual end |
.kernel_release ⇒ Object
13 14 15 |
# File 'lib/tinspitz.rb', line 13 def self.kernel_release Facter.kernelrelease end |
.kernelmajorv ⇒ Object
65 66 67 |
# File 'lib/tinspitz.rb', line 65 def self.kernelmajorv Facter.kernelmajversion end |
.macaddress ⇒ Object
41 42 43 |
# File 'lib/tinspitz.rb', line 41 def self.macaddress Facter.macaddress end |
.netmask ⇒ Object
45 46 47 |
# File 'lib/tinspitz.rb', line 45 def self.netmask Facter.netmask end |
.physical_processor_count ⇒ Object
25 26 27 |
# File 'lib/tinspitz.rb', line 25 def self.physical_processor_count Facter.physicalprocessorcount end |
.processor_count ⇒ Object
29 30 31 |
# File 'lib/tinspitz.rb', line 29 def self.processor_count Facter.processorcount end |
.rubyversion ⇒ Object
81 82 83 |
# File 'lib/tinspitz.rb', line 81 def self.rubyversion Facter.rubyversion end |
.swap ⇒ Object
69 70 71 |
# File 'lib/tinspitz.rb', line 69 def self.swap Facter.swapsize end |
.swapfree ⇒ Object
73 74 75 |
# File 'lib/tinspitz.rb', line 73 def self.swapfree Facter.swapfree end |
.system_description ⇒ Object
9 10 11 |
# File 'lib/tinspitz.rb', line 9 def self.system_description Facter.lsbdistdescription end |
.system_version ⇒ Object
I suggest you look at test/test_tinspitz.rb for examples, there are some good ones there.
5 6 7 |
# File 'lib/tinspitz.rb', line 5 def self.system_version Facter.lsbdistrelease end |
.timezone ⇒ Object
77 78 79 |
# File 'lib/tinspitz.rb', line 77 def self.timezone Facter.timezone end |
.uptime ⇒ Object
85 86 87 |
# File 'lib/tinspitz.rb', line 85 def self.uptime Facter.uptime end |