Class: TinSpitz

Inherits:
Object
  • Object
show all
Defined in:
lib/tinspitz.rb

Class Method Summary collapse

Class Method Details

.archObject



89
90
91
# File 'lib/tinspitz.rb', line 89

def self.arch
  Facter.architecture
end

.current_userObject



57
58
59
# File 'lib/tinspitz.rb', line 57

def self.current_user
  Facter.id
end

.domainObject



33
34
35
# File 'lib/tinspitz.rb', line 33

def self.domain
  Facter.domain
end

.domainnameObject



53
54
55
# File 'lib/tinspitz.rb', line 53

def self.domainname
  Facter.fqdn
end

.familyObject



21
22
23
# File 'lib/tinspitz.rb', line 21

def self.family
  Facter.osfamily
end

.hardwaremodelObject



61
62
63
# File 'lib/tinspitz.rb', line 61

def self.hardwaremodel
  Facter.hardwaremodel
end

.hostnameObject



49
50
51
# File 'lib/tinspitz.rb', line 49

def self.hostname
  Facter.hostname
end

.interfacesObject



37
38
39
# File 'lib/tinspitz.rb', line 37

def self.interfaces
  Facter.interfaces
end

.isvirtualObject



17
18
19
# File 'lib/tinspitz.rb', line 17

def self.isvirtual
  Facter.is_virtual
end

.kernel_releaseObject



13
14
15
# File 'lib/tinspitz.rb', line 13

def self.kernel_release
  Facter.kernelrelease
end

.kernelmajorvObject



65
66
67
# File 'lib/tinspitz.rb', line 65

def self.kernelmajorv
  Facter.kernelmajversion
end

.macaddressObject



41
42
43
# File 'lib/tinspitz.rb', line 41

def self.macaddress
  Facter.macaddress
end

.netmaskObject



45
46
47
# File 'lib/tinspitz.rb', line 45

def self.netmask
  Facter.netmask
end

.physical_processor_countObject



25
26
27
# File 'lib/tinspitz.rb', line 25

def self.physical_processor_count
  Facter.physicalprocessorcount
end

.processor_countObject



29
30
31
# File 'lib/tinspitz.rb', line 29

def self.processor_count
  Facter.processorcount
end

.rubyversionObject



81
82
83
# File 'lib/tinspitz.rb', line 81

def self.rubyversion
  Facter.rubyversion
end

.swapObject



69
70
71
# File 'lib/tinspitz.rb', line 69

def self.swap
  Facter.swapsize
end

.swapfreeObject



73
74
75
# File 'lib/tinspitz.rb', line 73

def self.swapfree
  Facter.swapfree
end

.system_descriptionObject



9
10
11
# File 'lib/tinspitz.rb', line 9

def self.system_description
  Facter.lsbdistdescription
end

.system_versionObject

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

.timezoneObject



77
78
79
# File 'lib/tinspitz.rb', line 77

def self.timezone
  Facter.timezone
end

.uptimeObject



85
86
87
# File 'lib/tinspitz.rb', line 85

def self.uptime
  Facter.uptime
end