ohai 0.5.8 → 0.6.0.beta.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (52) hide show
  1. data/Rakefile +16 -48
  2. data/bin/ohai +1 -1
  3. data/lib/ohai.rb +1 -3
  4. data/lib/ohai/mash.rb +211 -0
  5. data/lib/ohai/mixin/command.rb +157 -44
  6. data/lib/ohai/mixin/ec2_metadata.rb +87 -0
  7. data/lib/ohai/plugins/c.rb +16 -13
  8. data/lib/ohai/plugins/chef.rb +2 -1
  9. data/lib/ohai/plugins/cloud.rb +25 -0
  10. data/lib/ohai/plugins/darwin/network.rb +10 -1
  11. data/lib/ohai/plugins/dmi.rb +100 -37
  12. data/lib/ohai/plugins/dmi_common.rb +117 -0
  13. data/lib/ohai/plugins/ec2.rb +12 -61
  14. data/lib/ohai/plugins/eucalyptus.rb +65 -0
  15. data/lib/ohai/plugins/freebsd/network.rb +11 -2
  16. data/lib/ohai/plugins/java.rb +4 -4
  17. data/lib/ohai/plugins/linux/filesystem.rb +24 -0
  18. data/lib/ohai/plugins/linux/network.rb +14 -1
  19. data/lib/ohai/plugins/linux/platform.rb +3 -0
  20. data/lib/ohai/plugins/linux/virtualization.rb +28 -6
  21. data/lib/ohai/plugins/netbsd/network.rb +10 -1
  22. data/lib/ohai/plugins/network.rb +3 -1
  23. data/lib/ohai/plugins/ohai.rb +1 -0
  24. data/lib/ohai/plugins/openbsd/network.rb +10 -1
  25. data/lib/ohai/plugins/ruby.rb +1 -1
  26. data/lib/ohai/plugins/sigar/filesystem.rb +2 -0
  27. data/lib/ohai/plugins/solaris2/dmi.rb +176 -0
  28. data/lib/ohai/plugins/solaris2/filesystem.rb +101 -0
  29. data/lib/ohai/plugins/solaris2/hostname.rb +10 -1
  30. data/lib/ohai/plugins/solaris2/network.rb +6 -1
  31. data/lib/ohai/plugins/solaris2/uptime.rb +36 -0
  32. data/lib/ohai/plugins/solaris2/virtualization.rb +91 -0
  33. data/lib/ohai/plugins/virtualization.rb +1 -1
  34. data/lib/ohai/plugins/windows/network.rb +17 -11
  35. data/lib/ohai/system.rb +22 -32
  36. data/lib/ohai/version.rb +23 -0
  37. data/spec/ohai/plugins/c_spec.rb +58 -7
  38. data/spec/ohai/plugins/cloud_spec.rb +24 -0
  39. data/spec/ohai/plugins/dmi_spec.rb +107 -47
  40. data/spec/ohai/plugins/ec2_spec.rb +3 -3
  41. data/spec/ohai/plugins/eucalyptus_spec.rb +84 -0
  42. data/spec/ohai/plugins/java_spec.rb +55 -2
  43. data/spec/ohai/plugins/linux/platform_spec.rb +13 -0
  44. data/spec/ohai/plugins/linux/virtualization_spec.rb +47 -6
  45. data/spec/ohai/plugins/perl_spec.rb +15 -14
  46. data/spec/ohai/plugins/rackspace_spec.rb +14 -14
  47. data/spec/ohai/plugins/solaris2/hostname_spec.rb +3 -8
  48. data/spec/ohai/plugins/solaris2/kernel_spec.rb +6 -6
  49. data/spec/ohai/plugins/solaris2/network_spec.rb +22 -22
  50. data/spec/ohai/plugins/solaris2/virtualization_spec.rb +133 -0
  51. data/spec/spec_helper.rb +5 -13
  52. metadata +182 -179
data/spec/spec_helper.rb CHANGED
@@ -1,12 +1,4 @@
1
- begin
2
- require 'spec'
3
- require 'mixlib/config'
4
- rescue LoadError
5
- require 'rubygems'
6
- gem 'rspec'
7
- require 'spec'
8
- require 'mixlib/config'
9
- end
1
+ require 'mixlib/config'
10
2
 
11
3
  $:.unshift(File.dirname(__FILE__) + '/../lib')
12
4
  require 'ohai'
@@ -24,7 +16,7 @@ def it_should_check_from_mash(plugin, attribute, from, value)
24
16
  @ohai.should_receive(:from).with(from).and_return(value)
25
17
  @ohai._require_plugin(plugin)
26
18
  end
27
-
19
+
28
20
  it "should set the #{plugin}[:#{attribute}] to the value from '#{from}'" do
29
21
  @ohai._require_plugin(plugin)
30
22
  @ohai[plugin][attribute].should == value
@@ -37,13 +29,13 @@ def it_should_check_from_deep_mash(plugin, mash, attribute, from, value)
37
29
  @ohai.should_receive(:from).with(from).and_return(value)
38
30
  @ohai._require_plugin(plugin)
39
31
  end
40
-
32
+
41
33
  it "should set the #{mash.inspect}[:#{attribute}] to the value from '#{from}'" do
42
34
  @ohai._require_plugin(plugin)
43
- if mash.is_a?(String)
35
+ if mash.is_a?(String)
44
36
  @ohai[mash][attribute].should == value
45
37
  elsif mash.is_a?(Array)
46
- if mash.length == 2
38
+ if mash.length == 2
47
39
  @ohai[mash[0]][mash[1]][attribute].should == value
48
40
  elsif mash.length == 3
49
41
  @ohai[mash[0]][mash[1]][mash[2]][attribute].should == value
metadata CHANGED
@@ -1,109 +1,97 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ohai
3
3
  version: !ruby/object:Gem::Version
4
- prerelease: false
4
+ hash: 62196419
5
+ prerelease: true
5
6
  segments:
6
7
  - 0
7
- - 5
8
- - 8
9
- version: 0.5.8
8
+ - 6
9
+ - 0
10
+ - beta
11
+ - 0
12
+ version: 0.6.0.beta.0
10
13
  platform: ruby
11
14
  authors:
12
15
  - Adam Jacob
13
- autorequire: ohai
16
+ autorequire:
14
17
  bindir: bin
15
18
  cert_chain: []
16
19
 
17
- date: 2010-10-19 00:00:00 -07:00
20
+ date: 2011-04-07 00:00:00 -07:00
18
21
  default_executable:
19
22
  dependencies:
20
23
  - !ruby/object:Gem::Dependency
21
- name: json
24
+ name: yajl-ruby
22
25
  prerelease: false
23
26
  requirement: &id001 !ruby/object:Gem::Requirement
24
27
  none: false
25
28
  requirements:
26
- - - ">="
27
- - !ruby/object:Gem::Version
28
- segments:
29
- - 1
30
- - 4
31
- - 4
32
- version: 1.4.4
33
- - - <=
29
+ - - ~>
34
30
  - !ruby/object:Gem::Version
31
+ hash: 19
35
32
  segments:
36
- - 1
37
- - 4
38
- - 6
39
- version: 1.4.6
33
+ - 0
34
+ - 7
35
+ - 8
36
+ version: 0.7.8
40
37
  type: :runtime
41
38
  version_requirements: *id001
42
39
  - !ruby/object:Gem::Dependency
43
- name: extlib
40
+ name: systemu
44
41
  prerelease: false
45
42
  requirement: &id002 !ruby/object:Gem::Requirement
46
43
  none: false
47
44
  requirements:
48
45
  - - ">="
49
46
  - !ruby/object:Gem::Version
47
+ hash: 3
50
48
  segments:
51
49
  - 0
52
50
  version: "0"
53
51
  type: :runtime
54
52
  version_requirements: *id002
55
53
  - !ruby/object:Gem::Dependency
56
- name: systemu
54
+ name: mixlib-cli
57
55
  prerelease: false
58
56
  requirement: &id003 !ruby/object:Gem::Requirement
59
57
  none: false
60
58
  requirements:
61
59
  - - ">="
62
60
  - !ruby/object:Gem::Version
61
+ hash: 3
63
62
  segments:
64
63
  - 0
65
64
  version: "0"
66
65
  type: :runtime
67
66
  version_requirements: *id003
68
67
  - !ruby/object:Gem::Dependency
69
- name: mixlib-cli
68
+ name: mixlib-config
70
69
  prerelease: false
71
70
  requirement: &id004 !ruby/object:Gem::Requirement
72
71
  none: false
73
72
  requirements:
74
73
  - - ">="
75
74
  - !ruby/object:Gem::Version
75
+ hash: 3
76
76
  segments:
77
77
  - 0
78
78
  version: "0"
79
79
  type: :runtime
80
80
  version_requirements: *id004
81
81
  - !ruby/object:Gem::Dependency
82
- name: mixlib-config
82
+ name: mixlib-log
83
83
  prerelease: false
84
84
  requirement: &id005 !ruby/object:Gem::Requirement
85
85
  none: false
86
86
  requirements:
87
87
  - - ">="
88
88
  - !ruby/object:Gem::Version
89
+ hash: 3
89
90
  segments:
90
91
  - 0
91
92
  version: "0"
92
93
  type: :runtime
93
94
  version_requirements: *id005
94
- - !ruby/object:Gem::Dependency
95
- name: mixlib-log
96
- prerelease: false
97
- requirement: &id006 !ruby/object:Gem::Requirement
98
- none: false
99
- requirements:
100
- - - ">="
101
- - !ruby/object:Gem::Version
102
- segments:
103
- - 0
104
- version: "0"
105
- type: :runtime
106
- version_requirements: *id006
107
95
  description: Ohai profiles your system and emits JSON
108
96
  email: adam@opscode.com
109
97
  executables:
@@ -117,188 +105,199 @@ files:
117
105
  - README.rdoc
118
106
  - Rakefile
119
107
  - docs/man/man1/ohai.1
120
- - lib/ohai/application.rb
121
- - lib/ohai/config.rb
122
- - lib/ohai/exception.rb
123
- - lib/ohai/log.rb
124
- - lib/ohai/mixin/command.rb
125
- - lib/ohai/mixin/from_file.rb
126
- - lib/ohai/mixin/string.rb
127
- - lib/ohai/plugins/aix/cpu.rb
128
- - lib/ohai/plugins/aix/filesystem.rb
129
- - lib/ohai/plugins/aix/hostname.rb
130
- - lib/ohai/plugins/aix/memory.rb
131
- - lib/ohai/plugins/aix/network.rb
132
- - lib/ohai/plugins/aix/platform.rb
133
- - lib/ohai/plugins/aix/ps.rb
134
- - lib/ohai/plugins/aix/ssh_host_key.rb
135
- - lib/ohai/plugins/aix/uptime.rb
136
- - lib/ohai/plugins/c.rb
137
- - lib/ohai/plugins/chef.rb
138
- - lib/ohai/plugins/cloud.rb
139
- - lib/ohai/plugins/command.rb
140
- - lib/ohai/plugins/darwin/filesystem.rb
141
- - lib/ohai/plugins/darwin/hostname.rb
142
- - lib/ohai/plugins/darwin/kernel.rb
143
- - lib/ohai/plugins/darwin/network.rb
144
- - lib/ohai/plugins/darwin/platform.rb
145
- - lib/ohai/plugins/darwin/ps.rb
146
- - lib/ohai/plugins/darwin/ssh_host_key.rb
147
- - lib/ohai/plugins/darwin/system_profiler.rb
148
- - lib/ohai/plugins/darwin/uptime.rb
108
+ - lib/ohai.rb
109
+ - lib/ohai/plugins/languages.rb
110
+ - lib/ohai/plugins/virtualization.rb
149
111
  - lib/ohai/plugins/dmi.rb
150
- - lib/ohai/plugins/ec2.rb
112
+ - lib/ohai/plugins/passwd.rb
113
+ - lib/ohai/plugins/ohai.rb
114
+ - lib/ohai/plugins/php.rb
115
+ - lib/ohai/plugins/keys.rb
116
+ - lib/ohai/plugins/dmi_common.rb
117
+ - lib/ohai/plugins/rackspace.rb
151
118
  - lib/ohai/plugins/erlang.rb
152
- - lib/ohai/plugins/freebsd/cpu.rb
153
- - lib/ohai/plugins/freebsd/filesystem.rb
154
- - lib/ohai/plugins/freebsd/hostname.rb
155
- - lib/ohai/plugins/freebsd/kernel.rb
119
+ - lib/ohai/plugins/freebsd/virtualization.rb
156
120
  - lib/ohai/plugins/freebsd/memory.rb
121
+ - lib/ohai/plugins/freebsd/hostname.rb
122
+ - lib/ohai/plugins/freebsd/uptime.rb
123
+ - lib/ohai/plugins/freebsd/ssh_host_key.rb
157
124
  - lib/ohai/plugins/freebsd/network.rb
125
+ - lib/ohai/plugins/freebsd/kernel.rb
158
126
  - lib/ohai/plugins/freebsd/platform.rb
159
127
  - lib/ohai/plugins/freebsd/ps.rb
160
- - lib/ohai/plugins/freebsd/ssh_host_key.rb
161
- - lib/ohai/plugins/freebsd/uptime.rb
162
- - lib/ohai/plugins/freebsd/virtualization.rb
128
+ - lib/ohai/plugins/freebsd/cpu.rb
129
+ - lib/ohai/plugins/freebsd/filesystem.rb
130
+ - lib/ohai/plugins/linux/virtualization.rb
131
+ - lib/ohai/plugins/linux/lsb.rb
132
+ - lib/ohai/plugins/linux/memory.rb
133
+ - lib/ohai/plugins/linux/hostname.rb
134
+ - lib/ohai/plugins/linux/uptime.rb
135
+ - lib/ohai/plugins/linux/ssh_host_key.rb
136
+ - lib/ohai/plugins/linux/block_device.rb
137
+ - lib/ohai/plugins/linux/network.rb
138
+ - lib/ohai/plugins/linux/kernel.rb
139
+ - lib/ohai/plugins/linux/platform.rb
140
+ - lib/ohai/plugins/linux/ps.rb
141
+ - lib/ohai/plugins/linux/cpu.rb
142
+ - lib/ohai/plugins/linux/filesystem.rb
163
143
  - lib/ohai/plugins/groovy.rb
144
+ - lib/ohai/plugins/darwin/hostname.rb
145
+ - lib/ohai/plugins/darwin/uptime.rb
146
+ - lib/ohai/plugins/darwin/ssh_host_key.rb
147
+ - lib/ohai/plugins/darwin/network.rb
148
+ - lib/ohai/plugins/darwin/system_profiler.rb
149
+ - lib/ohai/plugins/darwin/kernel.rb
150
+ - lib/ohai/plugins/darwin/platform.rb
151
+ - lib/ohai/plugins/darwin/ps.rb
152
+ - lib/ohai/plugins/darwin/filesystem.rb
153
+ - lib/ohai/plugins/chef.rb
164
154
  - lib/ohai/plugins/hostname.rb
165
- - lib/ohai/plugins/hpux/cpu.rb
166
- - lib/ohai/plugins/hpux/filesystem.rb
167
- - lib/ohai/plugins/hpux/hostname.rb
155
+ - lib/ohai/plugins/perl.rb
156
+ - lib/ohai/plugins/uptime.rb
157
+ - lib/ohai/plugins/ec2.rb
158
+ - lib/ohai/plugins/network_listeners.rb
168
159
  - lib/ohai/plugins/hpux/memory.rb
160
+ - lib/ohai/plugins/hpux/hostname.rb
161
+ - lib/ohai/plugins/hpux/uptime.rb
162
+ - lib/ohai/plugins/hpux/ssh_host_key.rb
169
163
  - lib/ohai/plugins/hpux/network.rb
170
164
  - lib/ohai/plugins/hpux/platform.rb
171
165
  - lib/ohai/plugins/hpux/ps.rb
172
- - lib/ohai/plugins/hpux/ssh_host_key.rb
173
- - lib/ohai/plugins/hpux/uptime.rb
174
- - lib/ohai/plugins/java.rb
175
- - lib/ohai/plugins/kernel.rb
176
- - lib/ohai/plugins/keys.rb
177
- - lib/ohai/plugins/languages.rb
178
- - lib/ohai/plugins/linux/block_device.rb
179
- - lib/ohai/plugins/linux/cpu.rb
180
- - lib/ohai/plugins/linux/filesystem.rb
181
- - lib/ohai/plugins/linux/hostname.rb
182
- - lib/ohai/plugins/linux/kernel.rb
183
- - lib/ohai/plugins/linux/lsb.rb
184
- - lib/ohai/plugins/linux/memory.rb
185
- - lib/ohai/plugins/linux/network.rb
186
- - lib/ohai/plugins/linux/platform.rb
187
- - lib/ohai/plugins/linux/ps.rb
188
- - lib/ohai/plugins/linux/ssh_host_key.rb
189
- - lib/ohai/plugins/linux/uptime.rb
190
- - lib/ohai/plugins/linux/virtualization.rb
191
- - lib/ohai/plugins/lua.rb
166
+ - lib/ohai/plugins/hpux/cpu.rb
167
+ - lib/ohai/plugins/hpux/filesystem.rb
192
168
  - lib/ohai/plugins/mono.rb
193
- - lib/ohai/plugins/netbsd/cpu.rb
194
- - lib/ohai/plugins/netbsd/filesystem.rb
195
- - lib/ohai/plugins/netbsd/hostname.rb
196
- - lib/ohai/plugins/netbsd/kernel.rb
197
- - lib/ohai/plugins/netbsd/memory.rb
198
- - lib/ohai/plugins/netbsd/network.rb
199
- - lib/ohai/plugins/netbsd/platform.rb
200
- - lib/ohai/plugins/netbsd/ps.rb
201
- - lib/ohai/plugins/netbsd/ssh_host_key.rb
202
- - lib/ohai/plugins/netbsd/uptime.rb
203
- - lib/ohai/plugins/netbsd/virtualization.rb
204
- - lib/ohai/plugins/network.rb
205
- - lib/ohai/plugins/network_listeners.rb
206
- - lib/ohai/plugins/ohai.rb
169
+ - lib/ohai/plugins/solaris2/virtualization.rb
170
+ - lib/ohai/plugins/solaris2/dmi.rb
171
+ - lib/ohai/plugins/solaris2/hostname.rb
172
+ - lib/ohai/plugins/solaris2/uptime.rb
173
+ - lib/ohai/plugins/solaris2/ssh_host_key.rb
174
+ - lib/ohai/plugins/solaris2/network.rb
175
+ - lib/ohai/plugins/solaris2/kernel.rb
176
+ - lib/ohai/plugins/solaris2/platform.rb
177
+ - lib/ohai/plugins/solaris2/ps.rb
178
+ - lib/ohai/plugins/solaris2/cpu.rb
179
+ - lib/ohai/plugins/solaris2/filesystem.rb
207
180
  - lib/ohai/plugins/ohai_time.rb
208
- - lib/ohai/plugins/openbsd/cpu.rb
209
- - lib/ohai/plugins/openbsd/filesystem.rb
210
- - lib/ohai/plugins/openbsd/hostname.rb
211
- - lib/ohai/plugins/openbsd/kernel.rb
181
+ - lib/ohai/plugins/c.rb
182
+ - lib/ohai/plugins/lua.rb
183
+ - lib/ohai/plugins/openbsd/virtualization.rb
212
184
  - lib/ohai/plugins/openbsd/memory.rb
185
+ - lib/ohai/plugins/openbsd/hostname.rb
186
+ - lib/ohai/plugins/openbsd/uptime.rb
187
+ - lib/ohai/plugins/openbsd/ssh_host_key.rb
213
188
  - lib/ohai/plugins/openbsd/network.rb
189
+ - lib/ohai/plugins/openbsd/kernel.rb
214
190
  - lib/ohai/plugins/openbsd/platform.rb
215
191
  - lib/ohai/plugins/openbsd/ps.rb
216
- - lib/ohai/plugins/openbsd/ssh_host_key.rb
217
- - lib/ohai/plugins/openbsd/uptime.rb
218
- - lib/ohai/plugins/openbsd/virtualization.rb
219
- - lib/ohai/plugins/os.rb
220
- - lib/ohai/plugins/passwd.rb
221
- - lib/ohai/plugins/perl.rb
222
- - lib/ohai/plugins/php.rb
223
- - lib/ohai/plugins/platform.rb
192
+ - lib/ohai/plugins/openbsd/cpu.rb
193
+ - lib/ohai/plugins/openbsd/filesystem.rb
224
194
  - lib/ohai/plugins/python.rb
225
- - lib/ohai/plugins/rackspace.rb
195
+ - lib/ohai/plugins/network.rb
196
+ - lib/ohai/plugins/kernel.rb
197
+ - lib/ohai/plugins/cloud.rb
198
+ - lib/ohai/plugins/java.rb
199
+ - lib/ohai/plugins/platform.rb
226
200
  - lib/ohai/plugins/ruby.rb
227
- - lib/ohai/plugins/sigar/cpu.rb
228
- - lib/ohai/plugins/sigar/filesystem.rb
229
- - lib/ohai/plugins/sigar/hostname.rb
201
+ - lib/ohai/plugins/os.rb
230
202
  - lib/ohai/plugins/sigar/memory.rb
203
+ - lib/ohai/plugins/sigar/hostname.rb
204
+ - lib/ohai/plugins/sigar/uptime.rb
231
205
  - lib/ohai/plugins/sigar/network.rb
232
206
  - lib/ohai/plugins/sigar/platform.rb
233
- - lib/ohai/plugins/sigar/uptime.rb
234
- - lib/ohai/plugins/solaris2/cpu.rb
235
- - lib/ohai/plugins/solaris2/hostname.rb
236
- - lib/ohai/plugins/solaris2/kernel.rb
237
- - lib/ohai/plugins/solaris2/network.rb
238
- - lib/ohai/plugins/solaris2/platform.rb
239
- - lib/ohai/plugins/solaris2/ps.rb
240
- - lib/ohai/plugins/solaris2/ssh_host_key.rb
241
- - lib/ohai/plugins/uptime.rb
242
- - lib/ohai/plugins/virtualization.rb
243
- - lib/ohai/plugins/windows/cpu.rb
244
- - lib/ohai/plugins/windows/filesystem.rb
207
+ - lib/ohai/plugins/sigar/cpu.rb
208
+ - lib/ohai/plugins/sigar/filesystem.rb
209
+ - lib/ohai/plugins/command.rb
245
210
  - lib/ohai/plugins/windows/hostname.rb
246
- - lib/ohai/plugins/windows/kernel.rb
247
211
  - lib/ohai/plugins/windows/network.rb
212
+ - lib/ohai/plugins/windows/kernel.rb
248
213
  - lib/ohai/plugins/windows/platform.rb
214
+ - lib/ohai/plugins/windows/cpu.rb
215
+ - lib/ohai/plugins/windows/filesystem.rb
216
+ - lib/ohai/plugins/eucalyptus.rb
217
+ - lib/ohai/plugins/netbsd/virtualization.rb
218
+ - lib/ohai/plugins/netbsd/memory.rb
219
+ - lib/ohai/plugins/netbsd/hostname.rb
220
+ - lib/ohai/plugins/netbsd/uptime.rb
221
+ - lib/ohai/plugins/netbsd/ssh_host_key.rb
222
+ - lib/ohai/plugins/netbsd/network.rb
223
+ - lib/ohai/plugins/netbsd/kernel.rb
224
+ - lib/ohai/plugins/netbsd/platform.rb
225
+ - lib/ohai/plugins/netbsd/ps.rb
226
+ - lib/ohai/plugins/netbsd/cpu.rb
227
+ - lib/ohai/plugins/netbsd/filesystem.rb
228
+ - lib/ohai/plugins/aix/memory.rb
229
+ - lib/ohai/plugins/aix/hostname.rb
230
+ - lib/ohai/plugins/aix/uptime.rb
231
+ - lib/ohai/plugins/aix/ssh_host_key.rb
232
+ - lib/ohai/plugins/aix/network.rb
233
+ - lib/ohai/plugins/aix/platform.rb
234
+ - lib/ohai/plugins/aix/ps.rb
235
+ - lib/ohai/plugins/aix/cpu.rb
236
+ - lib/ohai/plugins/aix/filesystem.rb
237
+ - lib/ohai/application.rb
238
+ - lib/ohai/version.rb
239
+ - lib/ohai/mash.rb
240
+ - lib/ohai/exception.rb
241
+ - lib/ohai/config.rb
242
+ - lib/ohai/log.rb
249
243
  - lib/ohai/system.rb
250
- - lib/ohai.rb
251
- - spec/ohai/mixin/command_spec.rb
252
- - spec/ohai/mixin/from_file_spec.rb
253
- - spec/ohai/plugins/c_spec.rb
254
- - spec/ohai/plugins/chef_spec.rb
255
- - spec/ohai/plugins/cloud_spec.rb
256
- - spec/ohai/plugins/darwin/hostname_spec.rb
257
- - spec/ohai/plugins/darwin/kernel_spec.rb
258
- - spec/ohai/plugins/darwin/platform_spec.rb
259
- - spec/ohai/plugins/dmi_spec.rb
244
+ - lib/ohai/mixin/string.rb
245
+ - lib/ohai/mixin/from_file.rb
246
+ - lib/ohai/mixin/command.rb
247
+ - lib/ohai/mixin/ec2_metadata.rb
248
+ - spec/ohai/plugins/groovy_spec.rb
249
+ - spec/ohai/plugins/lua_spec.rb
260
250
  - spec/ohai/plugins/ec2_spec.rb
261
- - spec/ohai/plugins/erlang_spec.rb
262
- - spec/ohai/plugins/freebsd/hostname_spec.rb
251
+ - spec/ohai/plugins/ruby_spec.rb
252
+ - spec/ohai/plugins/rackspace_spec.rb
263
253
  - spec/ohai/plugins/freebsd/kernel_spec.rb
264
254
  - spec/ohai/plugins/freebsd/platform_spec.rb
265
- - spec/ohai/plugins/groovy_spec.rb
266
- - spec/ohai/plugins/hostname_spec.rb
267
- - spec/ohai/plugins/java_spec.rb
268
- - spec/ohai/plugins/kernel_spec.rb
255
+ - spec/ohai/plugins/freebsd/hostname_spec.rb
256
+ - spec/ohai/plugins/php_spec.rb
269
257
  - spec/ohai/plugins/linux/cpu_spec.rb
270
- - spec/ohai/plugins/linux/hostname_spec.rb
271
258
  - spec/ohai/plugins/linux/kernel_spec.rb
272
- - spec/ohai/plugins/linux/lsb_spec.rb
273
259
  - spec/ohai/plugins/linux/platform_spec.rb
274
260
  - spec/ohai/plugins/linux/uptime_spec.rb
275
261
  - spec/ohai/plugins/linux/virtualization_spec.rb
276
- - spec/ohai/plugins/lua_spec.rb
262
+ - spec/ohai/plugins/linux/lsb_spec.rb
263
+ - spec/ohai/plugins/linux/hostname_spec.rb
264
+ - spec/ohai/plugins/chef_spec.rb
265
+ - spec/ohai/plugins/darwin/kernel_spec.rb
266
+ - spec/ohai/plugins/darwin/platform_spec.rb
267
+ - spec/ohai/plugins/darwin/hostname_spec.rb
268
+ - spec/ohai/plugins/python_spec.rb
269
+ - spec/ohai/plugins/java_spec.rb
270
+ - spec/ohai/plugins/kernel_spec.rb
271
+ - spec/ohai/plugins/dmi_spec.rb
277
272
  - spec/ohai/plugins/mono_spec.rb
278
- - spec/ohai/plugins/netbsd/hostname_spec.rb
279
- - spec/ohai/plugins/netbsd/kernel_spec.rb
280
- - spec/ohai/plugins/netbsd/platform_spec.rb
281
- - spec/ohai/plugins/ohai_spec.rb
282
- - spec/ohai/plugins/ohai_time_spec.rb
283
- - spec/ohai/plugins/openbsd/hostname_spec.rb
273
+ - spec/ohai/plugins/solaris2/network_spec.rb
274
+ - spec/ohai/plugins/solaris2/kernel_spec.rb
275
+ - spec/ohai/plugins/solaris2/virtualization_spec.rb
276
+ - spec/ohai/plugins/solaris2/hostname_spec.rb
284
277
  - spec/ohai/plugins/openbsd/kernel_spec.rb
285
278
  - spec/ohai/plugins/openbsd/platform_spec.rb
279
+ - spec/ohai/plugins/openbsd/hostname_spec.rb
280
+ - spec/ohai/plugins/platform_spec.rb
281
+ - spec/ohai/plugins/erlang_spec.rb
282
+ - spec/ohai/plugins/perl_spec.rb
283
+ - spec/ohai/plugins/c_spec.rb
284
+ - spec/ohai/plugins/ohai_spec.rb
286
285
  - spec/ohai/plugins/os_spec.rb
287
286
  - spec/ohai/plugins/passwd_spec.rb
288
- - spec/ohai/plugins/perl_spec.rb
289
- - spec/ohai/plugins/php_spec.rb
290
- - spec/ohai/plugins/platform_spec.rb
291
- - spec/ohai/plugins/python_spec.rb
292
- - spec/ohai/plugins/rackspace_spec.rb
293
- - spec/ohai/plugins/ruby_spec.rb
294
- - spec/ohai/plugins/solaris2/hostname_spec.rb
295
- - spec/ohai/plugins/solaris2/kernel_spec.rb
296
- - spec/ohai/plugins/solaris2/network_spec.rb
287
+ - spec/ohai/plugins/cloud_spec.rb
288
+ - spec/ohai/plugins/eucalyptus_spec.rb
289
+ - spec/ohai/plugins/netbsd/kernel_spec.rb
290
+ - spec/ohai/plugins/netbsd/platform_spec.rb
291
+ - spec/ohai/plugins/netbsd/hostname_spec.rb
292
+ - spec/ohai/plugins/hostname_spec.rb
293
+ - spec/ohai/plugins/ohai_time_spec.rb
297
294
  - spec/ohai/system_spec.rb
298
- - spec/ohai_spec.rb
299
- - spec/rcov.opts
300
- - spec/spec.opts
295
+ - spec/ohai/mixin/command_spec.rb
296
+ - spec/ohai/mixin/from_file_spec.rb
301
297
  - spec/spec_helper.rb
298
+ - spec/spec.opts
299
+ - spec/rcov.opts
300
+ - spec/ohai_spec.rb
302
301
  - bin/ohai
303
302
  has_rdoc: true
304
303
  homepage: http://wiki.opscode.com/display/ohai
@@ -314,17 +313,21 @@ required_ruby_version: !ruby/object:Gem::Requirement
314
313
  requirements:
315
314
  - - ">="
316
315
  - !ruby/object:Gem::Version
316
+ hash: 3
317
317
  segments:
318
318
  - 0
319
319
  version: "0"
320
320
  required_rubygems_version: !ruby/object:Gem::Requirement
321
321
  none: false
322
322
  requirements:
323
- - - ">="
323
+ - - ">"
324
324
  - !ruby/object:Gem::Version
325
+ hash: 25
325
326
  segments:
326
- - 0
327
- version: "0"
327
+ - 1
328
+ - 3
329
+ - 1
330
+ version: 1.3.1
328
331
  requirements: []
329
332
 
330
333
  rubyforge_project: