ohai 0.6.2 → 0.6.4

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -18,7 +18,6 @@ begin
18
18
 
19
19
  RSpec::Core::RakeTask.new do |t|
20
20
  t.pattern = 'spec/**/*_spec.rb'
21
- t.rspec_opts = %w(-fs --color)
22
21
  end
23
22
  rescue LoadError
24
23
  desc "rspec is not installed, this task is disabled"
@@ -71,7 +71,7 @@ module Ohai
71
71
  http_client.get("#{EC2_METADATA_URL}/#{key}").body
72
72
  end
73
73
  else
74
- next
74
+ fetch_metadata(key).each{|k,v| metadata[k] = v}
75
75
  end
76
76
  end
77
77
  metadata
@@ -45,6 +45,10 @@ end
45
45
  def get_ec2_values
46
46
  cloud[:public_ips] << ec2['public_ipv4']
47
47
  cloud[:private_ips] << ec2['local_ipv4']
48
+ cloud[:public_ipv4] = ec2['public_ipv4']
49
+ cloud[:public_hostname] = ec2['public_hostname']
50
+ cloud[:local_ipv4] = ec2['local_ipv4']
51
+ cloud[:local_hostname] = ec2['local_hostname']
48
52
  cloud[:provider] = "ec2"
49
53
  end
50
54
 
@@ -71,6 +75,10 @@ end
71
75
  def get_rackspace_values
72
76
  cloud[:public_ips] << rackspace['public_ip']
73
77
  cloud[:private_ips] << rackspace['private_ip']
78
+ cloud[:public_ipv4] = rackspace['public_ipv4']
79
+ cloud[:public_hostname] = rackspace['public_hostname']
80
+ cloud[:local_ipv4] = rackspace['local_ipv4']
81
+ cloud[:local_hostname] = rackspace['local_hostname']
74
82
  cloud[:provider] = "rackspace"
75
83
  end
76
84
 
@@ -96,6 +104,10 @@ end
96
104
  def get_eucalyptus_values
97
105
  cloud[:public_ips] << eucalyptus['public_ipv4']
98
106
  cloud[:private_ips] << eucalyptus['local_ipv4']
107
+ cloud[:public_ipv4] = eucalyptus['public_ipv4']
108
+ cloud[:public_hostname] = eucalyptus['public_hostname']
109
+ cloud[:local_ipv4] = eucalyptus['local_ipv4']
110
+ cloud[:local_hostname] = eucalyptus['local_hostname']
99
111
  cloud[:provider] = "eucalyptus"
100
112
  end
101
113
 
@@ -0,0 +1,40 @@
1
+ #
2
+ # Author:: James Harton (<james@sociable.co.nz>)
3
+ # Copyright:: Copyright (c) 2010 Sociable Limited.
4
+ # License:: Apache License, Version 2.0
5
+ #
6
+ # Licensed under the Apache License, Version 2.0 (the "License");
7
+ # you may not use this file except in compliance with the License.
8
+ # You may obtain a copy of the License at
9
+ #
10
+ # http://www.apache.org/licenses/LICENSE-2.0
11
+ #
12
+ # Unless required by applicable law or agreed to in writing, software
13
+ # distributed under the License is distributed on an "AS IS" BASIS,
14
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ # See the License for the specific language governing permissions and
16
+ # limitations under the License.
17
+
18
+ begin
19
+ require 'ipaddr_extensions'
20
+
21
+ provides "network_ip_scope", "privateaddress"
22
+
23
+ require_plugin "hostname"
24
+ require_plugin "network"
25
+
26
+ network['interfaces'].keys.each do |ifName|
27
+ network['interfaces'][ifName]['addresses'].each do |address,attrs|
28
+ begin
29
+ attrs.merge! 'ip_scope' => address.to_ip.scope
30
+ privateaddress address if address.to_ip.scope =~ /PRIVATE/
31
+ rescue ArgumentError
32
+ # Just silently fail if we can't create an IP from the string.
33
+ end
34
+ end
35
+ end
36
+
37
+ rescue LoadError => e
38
+ # our favourite gem is not installed. Boohoo.
39
+ Ohai::Log.debug("ip_scopes: cannot load gem, plugin disabled: #{e}")
40
+ end
@@ -67,4 +67,9 @@ if looks_like_rackspace?
67
67
  rackspace Mash.new
68
68
  get_ip_address(:public_ip, :eth0)
69
69
  get_ip_address(:private_ip, :eth1)
70
+ # public_ip + private_ip are deprecated in favor of public_ipv4 and local_ipv4 to standardize.
71
+ rackspace[:public_ipv4] = rackspace[:public_ip]
72
+ rackspace[:public_hostname] = "#{rackspace[:public_ip].gsub('.','-')}.static.cloud-ips.com"
73
+ rackspace[:local_ipv4] = rackspace[:private_ip]
74
+ rackspace[:local_hostname] = hostname
70
75
  end
@@ -18,6 +18,6 @@
18
18
 
19
19
  module Ohai
20
20
  OHAI_ROOT = File.expand_path(File.dirname(__FILE__))
21
- VERSION = '0.6.2'
21
+ VERSION = '0.6.4'
22
22
  end
23
23
 
metadata CHANGED
@@ -1,8 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ohai
3
3
  version: !ruby/object:Gem::Version
4
- prerelease:
5
- version: 0.6.2
4
+ hash: 15
5
+ prerelease: false
6
+ segments:
7
+ - 0
8
+ - 6
9
+ - 4
10
+ version: 0.6.4
6
11
  platform: ruby
7
12
  authors:
8
13
  - Adam Jacob
@@ -10,7 +15,7 @@ autorequire:
10
15
  bindir: bin
11
16
  cert_chain: []
12
17
 
13
- date: 2011-04-14 00:00:00 -07:00
18
+ date: 2011-04-28 00:00:00 -07:00
14
19
  default_executable:
15
20
  dependencies:
16
21
  - !ruby/object:Gem::Dependency
@@ -21,6 +26,9 @@ dependencies:
21
26
  requirements:
22
27
  - - ">="
23
28
  - !ruby/object:Gem::Version
29
+ hash: 3
30
+ segments:
31
+ - 0
24
32
  version: "0"
25
33
  type: :runtime
26
34
  version_requirements: *id001
@@ -32,6 +40,9 @@ dependencies:
32
40
  requirements:
33
41
  - - ">="
34
42
  - !ruby/object:Gem::Version
43
+ hash: 3
44
+ segments:
45
+ - 0
35
46
  version: "0"
36
47
  type: :runtime
37
48
  version_requirements: *id002
@@ -43,6 +54,9 @@ dependencies:
43
54
  requirements:
44
55
  - - ">="
45
56
  - !ruby/object:Gem::Version
57
+ hash: 3
58
+ segments:
59
+ - 0
46
60
  version: "0"
47
61
  type: :runtime
48
62
  version_requirements: *id003
@@ -54,6 +68,9 @@ dependencies:
54
68
  requirements:
55
69
  - - ">="
56
70
  - !ruby/object:Gem::Version
71
+ hash: 3
72
+ segments:
73
+ - 0
57
74
  version: "0"
58
75
  type: :runtime
59
76
  version_requirements: *id004
@@ -65,9 +82,54 @@ dependencies:
65
82
  requirements:
66
83
  - - ">="
67
84
  - !ruby/object:Gem::Version
85
+ hash: 3
86
+ segments:
87
+ - 0
68
88
  version: "0"
69
89
  type: :runtime
70
90
  version_requirements: *id005
91
+ - !ruby/object:Gem::Dependency
92
+ name: rspec-core
93
+ prerelease: false
94
+ requirement: &id006 !ruby/object:Gem::Requirement
95
+ none: false
96
+ requirements:
97
+ - - ">="
98
+ - !ruby/object:Gem::Version
99
+ hash: 3
100
+ segments:
101
+ - 0
102
+ version: "0"
103
+ type: :development
104
+ version_requirements: *id006
105
+ - !ruby/object:Gem::Dependency
106
+ name: rspec-expectations
107
+ prerelease: false
108
+ requirement: &id007 !ruby/object:Gem::Requirement
109
+ none: false
110
+ requirements:
111
+ - - ">="
112
+ - !ruby/object:Gem::Version
113
+ hash: 3
114
+ segments:
115
+ - 0
116
+ version: "0"
117
+ type: :development
118
+ version_requirements: *id007
119
+ - !ruby/object:Gem::Dependency
120
+ name: rspec-mocks
121
+ prerelease: false
122
+ requirement: &id008 !ruby/object:Gem::Requirement
123
+ none: false
124
+ requirements:
125
+ - - ">="
126
+ - !ruby/object:Gem::Version
127
+ hash: 3
128
+ segments:
129
+ - 0
130
+ version: "0"
131
+ type: :development
132
+ version_requirements: *id008
71
133
  description: Ohai profiles your system and emits JSON
72
134
  email: adam@opscode.com
73
135
  executables:
@@ -81,199 +143,200 @@ files:
81
143
  - README.rdoc
82
144
  - Rakefile
83
145
  - docs/man/man1/ohai.1
84
- - lib/ohai/application.rb
85
- - lib/ohai/config.rb
86
- - lib/ohai/exception.rb
87
- - lib/ohai/log.rb
88
- - lib/ohai/mash.rb
89
- - lib/ohai/mixin/command.rb
90
- - lib/ohai/mixin/ec2_metadata.rb
91
- - lib/ohai/mixin/from_file.rb
92
- - lib/ohai/mixin/string.rb
93
- - lib/ohai/plugins/aix/cpu.rb
94
- - lib/ohai/plugins/aix/filesystem.rb
95
- - lib/ohai/plugins/aix/hostname.rb
96
- - lib/ohai/plugins/aix/memory.rb
97
- - lib/ohai/plugins/aix/network.rb
98
- - lib/ohai/plugins/aix/platform.rb
99
- - lib/ohai/plugins/aix/ps.rb
100
- - lib/ohai/plugins/aix/ssh_host_key.rb
101
- - lib/ohai/plugins/aix/uptime.rb
102
- - lib/ohai/plugins/c.rb
103
- - lib/ohai/plugins/chef.rb
104
- - lib/ohai/plugins/cloud.rb
105
- - lib/ohai/plugins/command.rb
106
- - lib/ohai/plugins/darwin/filesystem.rb
107
- - lib/ohai/plugins/darwin/hostname.rb
108
- - lib/ohai/plugins/darwin/kernel.rb
109
- - lib/ohai/plugins/darwin/network.rb
110
- - lib/ohai/plugins/darwin/platform.rb
111
- - lib/ohai/plugins/darwin/ps.rb
112
- - lib/ohai/plugins/darwin/ssh_host_key.rb
113
- - lib/ohai/plugins/darwin/system_profiler.rb
114
- - lib/ohai/plugins/darwin/uptime.rb
146
+ - lib/ohai.rb
147
+ - lib/ohai/plugins/languages.rb
148
+ - lib/ohai/plugins/virtualization.rb
115
149
  - lib/ohai/plugins/dmi.rb
150
+ - lib/ohai/plugins/passwd.rb
151
+ - lib/ohai/plugins/ohai.rb
152
+ - lib/ohai/plugins/php.rb
153
+ - lib/ohai/plugins/ip_scopes.rb
154
+ - lib/ohai/plugins/keys.rb
116
155
  - lib/ohai/plugins/dmi_common.rb
117
- - lib/ohai/plugins/ec2.rb
156
+ - lib/ohai/plugins/rackspace.rb
118
157
  - lib/ohai/plugins/erlang.rb
119
- - lib/ohai/plugins/eucalyptus.rb
120
- - lib/ohai/plugins/freebsd/cpu.rb
121
- - lib/ohai/plugins/freebsd/filesystem.rb
122
- - lib/ohai/plugins/freebsd/hostname.rb
123
- - lib/ohai/plugins/freebsd/kernel.rb
158
+ - lib/ohai/plugins/freebsd/virtualization.rb
124
159
  - lib/ohai/plugins/freebsd/memory.rb
160
+ - lib/ohai/plugins/freebsd/hostname.rb
161
+ - lib/ohai/plugins/freebsd/uptime.rb
162
+ - lib/ohai/plugins/freebsd/ssh_host_key.rb
125
163
  - lib/ohai/plugins/freebsd/network.rb
164
+ - lib/ohai/plugins/freebsd/kernel.rb
126
165
  - lib/ohai/plugins/freebsd/platform.rb
127
166
  - lib/ohai/plugins/freebsd/ps.rb
128
- - lib/ohai/plugins/freebsd/ssh_host_key.rb
129
- - lib/ohai/plugins/freebsd/uptime.rb
130
- - lib/ohai/plugins/freebsd/virtualization.rb
167
+ - lib/ohai/plugins/freebsd/cpu.rb
168
+ - lib/ohai/plugins/freebsd/filesystem.rb
169
+ - lib/ohai/plugins/linux/virtualization.rb
170
+ - lib/ohai/plugins/linux/lsb.rb
171
+ - lib/ohai/plugins/linux/memory.rb
172
+ - lib/ohai/plugins/linux/hostname.rb
173
+ - lib/ohai/plugins/linux/uptime.rb
174
+ - lib/ohai/plugins/linux/ssh_host_key.rb
175
+ - lib/ohai/plugins/linux/block_device.rb
176
+ - lib/ohai/plugins/linux/network.rb
177
+ - lib/ohai/plugins/linux/kernel.rb
178
+ - lib/ohai/plugins/linux/platform.rb
179
+ - lib/ohai/plugins/linux/ps.rb
180
+ - lib/ohai/plugins/linux/cpu.rb
181
+ - lib/ohai/plugins/linux/filesystem.rb
131
182
  - lib/ohai/plugins/groovy.rb
183
+ - lib/ohai/plugins/darwin/hostname.rb
184
+ - lib/ohai/plugins/darwin/uptime.rb
185
+ - lib/ohai/plugins/darwin/ssh_host_key.rb
186
+ - lib/ohai/plugins/darwin/network.rb
187
+ - lib/ohai/plugins/darwin/system_profiler.rb
188
+ - lib/ohai/plugins/darwin/kernel.rb
189
+ - lib/ohai/plugins/darwin/platform.rb
190
+ - lib/ohai/plugins/darwin/ps.rb
191
+ - lib/ohai/plugins/darwin/filesystem.rb
192
+ - lib/ohai/plugins/chef.rb
132
193
  - lib/ohai/plugins/hostname.rb
133
- - lib/ohai/plugins/hpux/cpu.rb
134
- - lib/ohai/plugins/hpux/filesystem.rb
135
- - lib/ohai/plugins/hpux/hostname.rb
194
+ - lib/ohai/plugins/perl.rb
195
+ - lib/ohai/plugins/uptime.rb
196
+ - lib/ohai/plugins/ec2.rb
197
+ - lib/ohai/plugins/network_listeners.rb
136
198
  - lib/ohai/plugins/hpux/memory.rb
199
+ - lib/ohai/plugins/hpux/hostname.rb
200
+ - lib/ohai/plugins/hpux/uptime.rb
201
+ - lib/ohai/plugins/hpux/ssh_host_key.rb
137
202
  - lib/ohai/plugins/hpux/network.rb
138
203
  - lib/ohai/plugins/hpux/platform.rb
139
204
  - lib/ohai/plugins/hpux/ps.rb
140
- - lib/ohai/plugins/hpux/ssh_host_key.rb
141
- - lib/ohai/plugins/hpux/uptime.rb
142
- - lib/ohai/plugins/java.rb
143
- - lib/ohai/plugins/kernel.rb
144
- - lib/ohai/plugins/keys.rb
145
- - lib/ohai/plugins/languages.rb
146
- - lib/ohai/plugins/linux/block_device.rb
147
- - lib/ohai/plugins/linux/cpu.rb
148
- - lib/ohai/plugins/linux/filesystem.rb
149
- - lib/ohai/plugins/linux/hostname.rb
150
- - lib/ohai/plugins/linux/kernel.rb
151
- - lib/ohai/plugins/linux/lsb.rb
152
- - lib/ohai/plugins/linux/memory.rb
153
- - lib/ohai/plugins/linux/network.rb
154
- - lib/ohai/plugins/linux/platform.rb
155
- - lib/ohai/plugins/linux/ps.rb
156
- - lib/ohai/plugins/linux/ssh_host_key.rb
157
- - lib/ohai/plugins/linux/uptime.rb
158
- - lib/ohai/plugins/linux/virtualization.rb
159
- - lib/ohai/plugins/lua.rb
205
+ - lib/ohai/plugins/hpux/cpu.rb
206
+ - lib/ohai/plugins/hpux/filesystem.rb
160
207
  - lib/ohai/plugins/mono.rb
161
- - lib/ohai/plugins/netbsd/cpu.rb
162
- - lib/ohai/plugins/netbsd/filesystem.rb
163
- - lib/ohai/plugins/netbsd/hostname.rb
164
- - lib/ohai/plugins/netbsd/kernel.rb
165
- - lib/ohai/plugins/netbsd/memory.rb
166
- - lib/ohai/plugins/netbsd/network.rb
167
- - lib/ohai/plugins/netbsd/platform.rb
168
- - lib/ohai/plugins/netbsd/ps.rb
169
- - lib/ohai/plugins/netbsd/ssh_host_key.rb
170
- - lib/ohai/plugins/netbsd/uptime.rb
171
- - lib/ohai/plugins/netbsd/virtualization.rb
172
- - lib/ohai/plugins/network.rb
173
- - lib/ohai/plugins/network_listeners.rb
174
- - lib/ohai/plugins/ohai.rb
208
+ - lib/ohai/plugins/solaris2/virtualization.rb
209
+ - lib/ohai/plugins/solaris2/dmi.rb
210
+ - lib/ohai/plugins/solaris2/hostname.rb
211
+ - lib/ohai/plugins/solaris2/uptime.rb
212
+ - lib/ohai/plugins/solaris2/ssh_host_key.rb
213
+ - lib/ohai/plugins/solaris2/network.rb
214
+ - lib/ohai/plugins/solaris2/kernel.rb
215
+ - lib/ohai/plugins/solaris2/platform.rb
216
+ - lib/ohai/plugins/solaris2/ps.rb
217
+ - lib/ohai/plugins/solaris2/cpu.rb
218
+ - lib/ohai/plugins/solaris2/filesystem.rb
175
219
  - lib/ohai/plugins/ohai_time.rb
176
- - lib/ohai/plugins/openbsd/cpu.rb
177
- - lib/ohai/plugins/openbsd/filesystem.rb
178
- - lib/ohai/plugins/openbsd/hostname.rb
179
- - lib/ohai/plugins/openbsd/kernel.rb
220
+ - lib/ohai/plugins/c.rb
221
+ - lib/ohai/plugins/lua.rb
222
+ - lib/ohai/plugins/openbsd/virtualization.rb
180
223
  - lib/ohai/plugins/openbsd/memory.rb
224
+ - lib/ohai/plugins/openbsd/hostname.rb
225
+ - lib/ohai/plugins/openbsd/uptime.rb
226
+ - lib/ohai/plugins/openbsd/ssh_host_key.rb
181
227
  - lib/ohai/plugins/openbsd/network.rb
228
+ - lib/ohai/plugins/openbsd/kernel.rb
182
229
  - lib/ohai/plugins/openbsd/platform.rb
183
230
  - lib/ohai/plugins/openbsd/ps.rb
184
- - lib/ohai/plugins/openbsd/ssh_host_key.rb
185
- - lib/ohai/plugins/openbsd/uptime.rb
186
- - lib/ohai/plugins/openbsd/virtualization.rb
187
- - lib/ohai/plugins/os.rb
188
- - lib/ohai/plugins/passwd.rb
189
- - lib/ohai/plugins/perl.rb
190
- - lib/ohai/plugins/php.rb
191
- - lib/ohai/plugins/platform.rb
231
+ - lib/ohai/plugins/openbsd/cpu.rb
232
+ - lib/ohai/plugins/openbsd/filesystem.rb
192
233
  - lib/ohai/plugins/python.rb
193
- - lib/ohai/plugins/rackspace.rb
234
+ - lib/ohai/plugins/network.rb
235
+ - lib/ohai/plugins/kernel.rb
236
+ - lib/ohai/plugins/cloud.rb
237
+ - lib/ohai/plugins/java.rb
238
+ - lib/ohai/plugins/platform.rb
194
239
  - lib/ohai/plugins/ruby.rb
195
- - lib/ohai/plugins/sigar/cpu.rb
196
- - lib/ohai/plugins/sigar/filesystem.rb
197
- - lib/ohai/plugins/sigar/hostname.rb
240
+ - lib/ohai/plugins/os.rb
198
241
  - lib/ohai/plugins/sigar/memory.rb
242
+ - lib/ohai/plugins/sigar/hostname.rb
243
+ - lib/ohai/plugins/sigar/uptime.rb
199
244
  - lib/ohai/plugins/sigar/network.rb
200
245
  - lib/ohai/plugins/sigar/platform.rb
201
- - lib/ohai/plugins/sigar/uptime.rb
202
- - lib/ohai/plugins/solaris2/cpu.rb
203
- - lib/ohai/plugins/solaris2/dmi.rb
204
- - lib/ohai/plugins/solaris2/filesystem.rb
205
- - lib/ohai/plugins/solaris2/hostname.rb
206
- - lib/ohai/plugins/solaris2/kernel.rb
207
- - lib/ohai/plugins/solaris2/network.rb
208
- - lib/ohai/plugins/solaris2/platform.rb
209
- - lib/ohai/plugins/solaris2/ps.rb
210
- - lib/ohai/plugins/solaris2/ssh_host_key.rb
211
- - lib/ohai/plugins/solaris2/uptime.rb
212
- - lib/ohai/plugins/solaris2/virtualization.rb
213
- - lib/ohai/plugins/uptime.rb
214
- - lib/ohai/plugins/virtualization.rb
215
- - lib/ohai/plugins/windows/cpu.rb
216
- - lib/ohai/plugins/windows/filesystem.rb
246
+ - lib/ohai/plugins/sigar/cpu.rb
247
+ - lib/ohai/plugins/sigar/filesystem.rb
248
+ - lib/ohai/plugins/command.rb
217
249
  - lib/ohai/plugins/windows/hostname.rb
218
- - lib/ohai/plugins/windows/kernel.rb
219
250
  - lib/ohai/plugins/windows/network.rb
251
+ - lib/ohai/plugins/windows/kernel.rb
220
252
  - lib/ohai/plugins/windows/platform.rb
221
- - lib/ohai/system.rb
253
+ - lib/ohai/plugins/windows/cpu.rb
254
+ - lib/ohai/plugins/windows/filesystem.rb
255
+ - lib/ohai/plugins/eucalyptus.rb
256
+ - lib/ohai/plugins/netbsd/virtualization.rb
257
+ - lib/ohai/plugins/netbsd/memory.rb
258
+ - lib/ohai/plugins/netbsd/hostname.rb
259
+ - lib/ohai/plugins/netbsd/uptime.rb
260
+ - lib/ohai/plugins/netbsd/ssh_host_key.rb
261
+ - lib/ohai/plugins/netbsd/network.rb
262
+ - lib/ohai/plugins/netbsd/kernel.rb
263
+ - lib/ohai/plugins/netbsd/platform.rb
264
+ - lib/ohai/plugins/netbsd/ps.rb
265
+ - lib/ohai/plugins/netbsd/cpu.rb
266
+ - lib/ohai/plugins/netbsd/filesystem.rb
267
+ - lib/ohai/plugins/aix/memory.rb
268
+ - lib/ohai/plugins/aix/hostname.rb
269
+ - lib/ohai/plugins/aix/uptime.rb
270
+ - lib/ohai/plugins/aix/ssh_host_key.rb
271
+ - lib/ohai/plugins/aix/network.rb
272
+ - lib/ohai/plugins/aix/platform.rb
273
+ - lib/ohai/plugins/aix/ps.rb
274
+ - lib/ohai/plugins/aix/cpu.rb
275
+ - lib/ohai/plugins/aix/filesystem.rb
276
+ - lib/ohai/application.rb
222
277
  - lib/ohai/version.rb
223
- - lib/ohai.rb
224
- - spec/ohai/mixin/command_spec.rb
225
- - spec/ohai/mixin/from_file_spec.rb
226
- - spec/ohai/plugins/c_spec.rb
227
- - spec/ohai/plugins/chef_spec.rb
228
- - spec/ohai/plugins/cloud_spec.rb
229
- - spec/ohai/plugins/darwin/hostname_spec.rb
230
- - spec/ohai/plugins/darwin/kernel_spec.rb
231
- - spec/ohai/plugins/darwin/platform_spec.rb
232
- - spec/ohai/plugins/dmi_spec.rb
278
+ - lib/ohai/mash.rb
279
+ - lib/ohai/exception.rb
280
+ - lib/ohai/config.rb
281
+ - lib/ohai/log.rb
282
+ - lib/ohai/system.rb
283
+ - lib/ohai/mixin/string.rb
284
+ - lib/ohai/mixin/from_file.rb
285
+ - lib/ohai/mixin/command.rb
286
+ - lib/ohai/mixin/ec2_metadata.rb
287
+ - spec/ohai/plugins/groovy_spec.rb
288
+ - spec/ohai/plugins/lua_spec.rb
233
289
  - spec/ohai/plugins/ec2_spec.rb
234
- - spec/ohai/plugins/erlang_spec.rb
235
- - spec/ohai/plugins/eucalyptus_spec.rb
236
- - spec/ohai/plugins/freebsd/hostname_spec.rb
290
+ - spec/ohai/plugins/ruby_spec.rb
291
+ - spec/ohai/plugins/rackspace_spec.rb
237
292
  - spec/ohai/plugins/freebsd/kernel_spec.rb
238
293
  - spec/ohai/plugins/freebsd/platform_spec.rb
239
- - spec/ohai/plugins/groovy_spec.rb
240
- - spec/ohai/plugins/hostname_spec.rb
241
- - spec/ohai/plugins/java_spec.rb
242
- - spec/ohai/plugins/kernel_spec.rb
294
+ - spec/ohai/plugins/freebsd/hostname_spec.rb
295
+ - spec/ohai/plugins/php_spec.rb
243
296
  - spec/ohai/plugins/linux/cpu_spec.rb
244
- - spec/ohai/plugins/linux/hostname_spec.rb
245
297
  - spec/ohai/plugins/linux/kernel_spec.rb
246
- - spec/ohai/plugins/linux/lsb_spec.rb
247
298
  - spec/ohai/plugins/linux/platform_spec.rb
248
299
  - spec/ohai/plugins/linux/uptime_spec.rb
249
300
  - spec/ohai/plugins/linux/virtualization_spec.rb
250
- - spec/ohai/plugins/lua_spec.rb
301
+ - spec/ohai/plugins/linux/lsb_spec.rb
302
+ - spec/ohai/plugins/linux/hostname_spec.rb
303
+ - spec/ohai/plugins/chef_spec.rb
304
+ - spec/ohai/plugins/darwin/kernel_spec.rb
305
+ - spec/ohai/plugins/darwin/platform_spec.rb
306
+ - spec/ohai/plugins/darwin/hostname_spec.rb
307
+ - spec/ohai/plugins/python_spec.rb
308
+ - spec/ohai/plugins/java_spec.rb
309
+ - spec/ohai/plugins/kernel_spec.rb
310
+ - spec/ohai/plugins/dmi_spec.rb
251
311
  - spec/ohai/plugins/mono_spec.rb
252
- - spec/ohai/plugins/netbsd/hostname_spec.rb
253
- - spec/ohai/plugins/netbsd/kernel_spec.rb
254
- - spec/ohai/plugins/netbsd/platform_spec.rb
255
- - spec/ohai/plugins/ohai_spec.rb
256
- - spec/ohai/plugins/ohai_time_spec.rb
257
- - spec/ohai/plugins/openbsd/hostname_spec.rb
312
+ - spec/ohai/plugins/solaris2/network_spec.rb
313
+ - spec/ohai/plugins/solaris2/kernel_spec.rb
314
+ - spec/ohai/plugins/solaris2/virtualization_spec.rb
315
+ - spec/ohai/plugins/solaris2/hostname_spec.rb
258
316
  - spec/ohai/plugins/openbsd/kernel_spec.rb
259
317
  - spec/ohai/plugins/openbsd/platform_spec.rb
318
+ - spec/ohai/plugins/openbsd/hostname_spec.rb
319
+ - spec/ohai/plugins/platform_spec.rb
320
+ - spec/ohai/plugins/erlang_spec.rb
321
+ - spec/ohai/plugins/perl_spec.rb
322
+ - spec/ohai/plugins/c_spec.rb
323
+ - spec/ohai/plugins/ohai_spec.rb
260
324
  - spec/ohai/plugins/os_spec.rb
261
325
  - spec/ohai/plugins/passwd_spec.rb
262
- - spec/ohai/plugins/perl_spec.rb
263
- - spec/ohai/plugins/php_spec.rb
264
- - spec/ohai/plugins/platform_spec.rb
265
- - spec/ohai/plugins/python_spec.rb
266
- - spec/ohai/plugins/rackspace_spec.rb
267
- - spec/ohai/plugins/ruby_spec.rb
268
- - spec/ohai/plugins/solaris2/hostname_spec.rb
269
- - spec/ohai/plugins/solaris2/kernel_spec.rb
270
- - spec/ohai/plugins/solaris2/network_spec.rb
271
- - spec/ohai/plugins/solaris2/virtualization_spec.rb
326
+ - spec/ohai/plugins/cloud_spec.rb
327
+ - spec/ohai/plugins/eucalyptus_spec.rb
328
+ - spec/ohai/plugins/netbsd/kernel_spec.rb
329
+ - spec/ohai/plugins/netbsd/platform_spec.rb
330
+ - spec/ohai/plugins/netbsd/hostname_spec.rb
331
+ - spec/ohai/plugins/hostname_spec.rb
332
+ - spec/ohai/plugins/ohai_time_spec.rb
272
333
  - spec/ohai/system_spec.rb
273
- - spec/ohai_spec.rb
274
- - spec/rcov.opts
275
- - spec/spec.opts
334
+ - spec/ohai/mixin/command_spec.rb
335
+ - spec/ohai/mixin/from_file_spec.rb
276
336
  - spec/spec_helper.rb
337
+ - spec/spec.opts
338
+ - spec/rcov.opts
339
+ - spec/ohai_spec.rb
277
340
  - bin/ohai
278
341
  has_rdoc: true
279
342
  homepage: http://wiki.opscode.com/display/ohai
@@ -289,17 +352,23 @@ required_ruby_version: !ruby/object:Gem::Requirement
289
352
  requirements:
290
353
  - - ">="
291
354
  - !ruby/object:Gem::Version
355
+ hash: 3
356
+ segments:
357
+ - 0
292
358
  version: "0"
293
359
  required_rubygems_version: !ruby/object:Gem::Requirement
294
360
  none: false
295
361
  requirements:
296
362
  - - ">="
297
363
  - !ruby/object:Gem::Version
364
+ hash: 3
365
+ segments:
366
+ - 0
298
367
  version: "0"
299
368
  requirements: []
300
369
 
301
370
  rubyforge_project:
302
- rubygems_version: 1.6.2
371
+ rubygems_version: 1.3.7
303
372
  signing_key:
304
373
  specification_version: 3
305
374
  summary: Ohai profiles your system and emits JSON