tinspitz 0.1.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/tinspitz.rb +55 -0
  2. metadata +80 -0
data/lib/tinspitz.rb ADDED
@@ -0,0 +1,55 @@
1
+ require 'facter'
2
+
3
+ class TinSpitz
4
+ # I suggest you look at test/test_tinspitz.rb for examples, there are some good ones there.
5
+ def self.system_version
6
+ Facter.lsbdistrelease
7
+ end
8
+
9
+ def self.system_description
10
+ Facter.lsbdistdescription
11
+ end
12
+
13
+ def self.kernel_release
14
+ Facter.kernelrelease
15
+ end
16
+
17
+ def self.isvirtual
18
+ Facter.is_virtual
19
+ end
20
+
21
+ def self.family
22
+ Facter.osfamily
23
+ end
24
+
25
+ def self.physical_processor_count
26
+ Facter.physicalprocessorcount
27
+ end
28
+
29
+ def self.processor_count
30
+ Facter.processorcount
31
+ end
32
+
33
+ def self.domain
34
+ Facter.domain
35
+ end
36
+
37
+ def self.interfaces
38
+ Facter.interfaces
39
+ end
40
+
41
+ def self.macaddress
42
+ Facter.macaddress
43
+ end
44
+
45
+ def self.netmask
46
+ Facter.netmask
47
+ end
48
+ end
49
+
50
+ #puts TinSpitz::family
51
+ #puts TinSpitz::kernel_release
52
+ #puts TinSpitz::system_version
53
+ #puts TinSpitz::system_description
54
+ #puts TinSpitz::family
55
+ #puts TinSpitz::isvirtual
metadata ADDED
@@ -0,0 +1,80 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: tinspitz
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.9
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - James Gifford
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2012-02-27 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: require_relative
16
+ requirement: &7292200 !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - =
20
+ - !ruby/object:Gem::Version
21
+ version: 1.0.3
22
+ type: :development
23
+ prerelease: false
24
+ version_requirements: *7292200
25
+ - !ruby/object:Gem::Dependency
26
+ name: rake
27
+ requirement: &7291140 !ruby/object:Gem::Requirement
28
+ none: false
29
+ requirements:
30
+ - - =
31
+ - !ruby/object:Gem::Version
32
+ version: 0.9.2.2
33
+ type: :development
34
+ prerelease: false
35
+ version_requirements: *7291140
36
+ - !ruby/object:Gem::Dependency
37
+ name: facter
38
+ requirement: &7306800 !ruby/object:Gem::Requirement
39
+ none: false
40
+ requirements:
41
+ - - =
42
+ - !ruby/object:Gem::Version
43
+ version: 1.6.2
44
+ type: :runtime
45
+ prerelease: false
46
+ version_requirements: *7306800
47
+ description: TinSpitz is an interface for your hardware & software stats. Currently
48
+ Linux only.
49
+ email:
50
+ - james@jamesrgifford.com
51
+ executables: []
52
+ extensions: []
53
+ extra_rdoc_files: []
54
+ files:
55
+ - lib/tinspitz.rb
56
+ homepage: http://github.com/jrgifford/tinspitz
57
+ licenses: []
58
+ post_install_message:
59
+ rdoc_options: []
60
+ require_paths:
61
+ - lib
62
+ required_ruby_version: !ruby/object:Gem::Requirement
63
+ none: false
64
+ requirements:
65
+ - - ! '>='
66
+ - !ruby/object:Gem::Version
67
+ version: '0'
68
+ required_rubygems_version: !ruby/object:Gem::Requirement
69
+ none: false
70
+ requirements:
71
+ - - ! '>='
72
+ - !ruby/object:Gem::Version
73
+ version: '0'
74
+ requirements: []
75
+ rubyforge_project:
76
+ rubygems_version: 1.8.17
77
+ signing_key:
78
+ specification_version: 3
79
+ summary: To be filled.
80
+ test_files: []