ohai 6.18.0.rc.1 → 6.18.0.rc.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: dc4fc3294fcb557a76b26484cd8198662e747d4b
4
+ data.tar.gz: b6b42d1e954d70acfb39ccd8c0456ff20fc7419d
5
+ SHA512:
6
+ metadata.gz: 218a40c288e2d3b01267a3e0a20910ed9f618caa8b2bd452a4a53b1168c2434b2e447db31c43a05c9f46b42ba2853fa78bf41a74ae512914472b2e4b4afe3cc2
7
+ data.tar.gz: c52f1a7e446f4b5febbfc3e058c8c53f118f641341d1a0919b937b3ccfe0c08a34c58ba4faf311d83b86aa0f9c2c8bd553971a9c754afd4f51e20c010074adc2
@@ -21,6 +21,8 @@ module Ohai
21
21
  module Mixin
22
22
  module GCEMetadata
23
23
 
24
+ extend self
25
+
24
26
  GCE_METADATA_ADDR = "metadata.google.internal" unless defined?(GCE_METADATA_ADDR)
25
27
  GCE_METADATA_URL = "/0.1/meta-data" unless defined?(GCE_METADATA_URL)
26
28
 
@@ -18,7 +18,7 @@ provides "gce"
18
18
 
19
19
  require 'ohai/mixin/gce_metadata'
20
20
 
21
- extend Ohai::Mixin::GCEMetadata
21
+
22
22
  GOOGLE_SYSFS_DMI = '/sys/firmware/dmi/entries/1-0/raw'
23
23
 
24
24
  #https://developers.google.com/compute/docs/instances#dmi
@@ -27,13 +27,13 @@ def has_google_dmi?
27
27
  end
28
28
 
29
29
  def looks_like_gce?
30
- hint?('gce') || has_google_dmi? && can_metadata_connect?(GCE_METADATA_ADDR,80)
30
+ hint?('gce') || (has_google_dmi? && Ohai::Mixin::GCEMetadata.can_metadata_connect?(Ohai::Mixin::GCEMetadata::GCE_METADATA_ADDR,80))
31
31
  end
32
32
 
33
33
  if looks_like_gce?
34
34
  Ohai::Log.debug("looks_like_gce? == true")
35
35
  gce Mash.new
36
- fetch_metadata.each {|k, v| gce[k] = v }
36
+ Ohai::Mixin::GCEMetadata.fetch_metadata.each {|k, v| gce[k] = v }
37
37
  else
38
38
  Ohai::Log.debug("looks_like_gce? == false")
39
39
  false
@@ -69,15 +69,10 @@ elsif File.exists?('/etc/gentoo-release')
69
69
  platform "gentoo"
70
70
  platform_version File.read('/etc/gentoo-release').scan(/(\d+|\.+)/).join
71
71
  elsif File.exists?('/etc/SuSE-release')
72
+ platform "suse"
72
73
  suse_release = File.read("/etc/SuSE-release")
73
- suse_version = suse_release.scan(/VERSION = (\d+)\nPATCHLEVEL = (\d+)/).flatten.join(".")
74
- suse_version = suse_release[/VERSION = ([\d\.]{2,})/, 1] if suse_version == ""
75
- platform_version suse_version
76
- if suse_release =~ /^openSUSE/
77
- platform "opensuse"
78
- else
79
- platform "suse"
80
- end
74
+ platform_version suse_release.scan(/VERSION = (\d+)\nPATCHLEVEL = (\d+)/).flatten.join(".")
75
+ platform_version suse_release.scan(/VERSION = ([\d\.]{2,})/).flatten.join(".") if platform_version == ""
81
76
  elsif File.exists?('/etc/slackware-version')
82
77
  platform "slackware"
83
78
  platform_version File.read("/etc/slackware-version").scan(/(\d+|\.+)/).join
@@ -18,6 +18,6 @@
18
18
 
19
19
  module Ohai
20
20
  OHAI_ROOT = File.expand_path(File.dirname(__FILE__))
21
- VERSION = '6.18.0.rc.1'
21
+ VERSION = '6.18.0.rc.3'
22
22
  end
23
23
 
@@ -16,7 +16,7 @@
16
16
  #
17
17
 
18
18
  require File.expand_path(File.dirname(__FILE__) + '/../../spec_helper.rb')
19
- require 'open-uri'
19
+ require 'ohai/mixin/gce_metadata'
20
20
 
21
21
  describe Ohai::System, "plugin gce" do
22
22
  before(:each) do
@@ -26,7 +26,7 @@ describe Ohai::System, "plugin gce" do
26
26
 
27
27
  shared_examples_for "!gce" do
28
28
  it "should NOT attempt to fetch the gce metadata" do
29
- @ohai.should_not_receive(:http_client)
29
+ Ohai::Mixin::GCEMetadata.should_not_receive(:http_client)
30
30
  @ohai._require_plugin("gce")
31
31
  end
32
32
  end
@@ -34,7 +34,7 @@ describe Ohai::System, "plugin gce" do
34
34
  shared_examples_for "gce" do
35
35
  before(:each) do
36
36
  @http_client = mock("Net::HTTP client")
37
- @ohai.stub!(:http_client).and_return(@http_client)
37
+ Ohai::Mixin::GCEMetadata.stub(:http_client).and_return(@http_client)
38
38
  IO.stub!(:select).and_return([[],[1],[]])
39
39
  t = mock("connection")
40
40
  t.stub!(:connect_nonblock).and_raise(Errno::EINPROGRESS)
@@ -384,11 +384,12 @@ describe Ohai::System, "Linux plugin platform" do
384
384
  @ohai[:lsb][:id] = "SUSE LINUX"
385
385
  end
386
386
 
387
- it "should read the platform as opensuse on openSUSE" do
387
+ it "should read the platform as suse" do
388
388
  @ohai[:lsb][:release] = "12.1"
389
389
  File.should_receive(:read).with("/etc/SuSE-release").and_return("openSUSE 12.1 (x86_64)\nVERSION = 12.1\nCODENAME = Asparagus\n")
390
390
  @ohai._require_plugin("linux::platform")
391
- @ohai[:platform].should == "opensuse"
391
+ @ohai[:platform].should == "suse"
392
+ @ohai[:platform_version].should == "12.1"
392
393
  @ohai[:platform_family].should == "suse"
393
394
  end
394
395
  end
@@ -428,6 +429,7 @@ describe Ohai::System, "Linux plugin platform" do
428
429
  it "[OHAI-272] should read the version as 11.3" do
429
430
  File.should_receive(:read).with("/etc/SuSE-release").and_return("openSUSE 11.3 (x86_64)\nVERSION = 11.3")
430
431
  @ohai._require_plugin("linux::platform")
432
+ @ohai[:platform].should == "suse"
431
433
  @ohai[:platform_version].should == "11.3"
432
434
  @ohai[:platform_family].should == "suse"
433
435
  end
@@ -435,6 +437,7 @@ describe Ohai::System, "Linux plugin platform" do
435
437
  it "[OHAI-272] should read the version as 9.1" do
436
438
  File.should_receive(:read).with("/etc/SuSE-release").and_return("SuSE Linux 9.1 (i586)\nVERSION = 9.1")
437
439
  @ohai._require_plugin("linux::platform")
440
+ @ohai[:platform].should == "suse"
438
441
  @ohai[:platform_version].should == "9.1"
439
442
  @ohai[:platform_family].should == "suse"
440
443
  end
@@ -442,16 +445,10 @@ describe Ohai::System, "Linux plugin platform" do
442
445
  it "[OHAI-272] should read the version as 11.4" do
443
446
  File.should_receive(:read).with("/etc/SuSE-release").and_return("openSUSE 11.4 (i586)\nVERSION = 11.4\nCODENAME = Celadon")
444
447
  @ohai._require_plugin("linux::platform")
448
+ @ohai[:platform].should == "suse"
445
449
  @ohai[:platform_version].should == "11.4"
446
450
  @ohai[:platform_family].should == "suse"
447
451
  end
448
-
449
- it "should read the platform as opensuse on openSUSE" do
450
- File.should_receive(:read).with("/etc/SuSE-release").and_return("openSUSE 12.2 (x86_64)\nVERSION = 12.2\nCODENAME = Mantis\n")
451
- @ohai._require_plugin("linux::platform")
452
- @ohai[:platform].should == "opensuse"
453
- @ohai[:platform_family].should == "suse"
454
- end
455
452
  end
456
453
  end
457
454
 
metadata CHANGED
@@ -1,206 +1,181 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ohai
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.18.0.rc.1
5
- prerelease: 7
4
+ version: 6.18.0.rc.3
6
5
  platform: ruby
7
6
  authors:
8
7
  - Adam Jacob
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-06-27 00:00:00.000000000 Z
11
+ date: 2013-07-15 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: systemu
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ! '>='
17
+ - - '>='
20
18
  - !ruby/object:Gem::Version
21
19
  version: '0'
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
- - - ! '>='
24
+ - - '>='
28
25
  - !ruby/object:Gem::Version
29
26
  version: '0'
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: yajl-ruby
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
- - - ! '>='
31
+ - - '>='
36
32
  - !ruby/object:Gem::Version
37
33
  version: '0'
38
34
  type: :runtime
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
- - - ! '>='
38
+ - - '>='
44
39
  - !ruby/object:Gem::Version
45
40
  version: '0'
46
41
  - !ruby/object:Gem::Dependency
47
42
  name: mixlib-cli
48
43
  requirement: !ruby/object:Gem::Requirement
49
- none: false
50
44
  requirements:
51
- - - ! '>='
45
+ - - '>='
52
46
  - !ruby/object:Gem::Version
53
47
  version: '0'
54
48
  type: :runtime
55
49
  prerelease: false
56
50
  version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
51
  requirements:
59
- - - ! '>='
52
+ - - '>='
60
53
  - !ruby/object:Gem::Version
61
54
  version: '0'
62
55
  - !ruby/object:Gem::Dependency
63
56
  name: mixlib-config
64
57
  requirement: !ruby/object:Gem::Requirement
65
- none: false
66
58
  requirements:
67
- - - ! '>='
59
+ - - '>='
68
60
  - !ruby/object:Gem::Version
69
61
  version: '0'
70
62
  type: :runtime
71
63
  prerelease: false
72
64
  version_requirements: !ruby/object:Gem::Requirement
73
- none: false
74
65
  requirements:
75
- - - ! '>='
66
+ - - '>='
76
67
  - !ruby/object:Gem::Version
77
68
  version: '0'
78
69
  - !ruby/object:Gem::Dependency
79
70
  name: mixlib-log
80
71
  requirement: !ruby/object:Gem::Requirement
81
- none: false
82
72
  requirements:
83
- - - ! '>='
73
+ - - '>='
84
74
  - !ruby/object:Gem::Version
85
75
  version: '0'
86
76
  type: :runtime
87
77
  prerelease: false
88
78
  version_requirements: !ruby/object:Gem::Requirement
89
- none: false
90
79
  requirements:
91
- - - ! '>='
80
+ - - '>='
92
81
  - !ruby/object:Gem::Version
93
82
  version: '0'
94
83
  - !ruby/object:Gem::Dependency
95
84
  name: mixlib-shellout
96
85
  requirement: !ruby/object:Gem::Requirement
97
- none: false
98
86
  requirements:
99
- - - ! '>='
87
+ - - '>='
100
88
  - !ruby/object:Gem::Version
101
89
  version: '0'
102
90
  type: :runtime
103
91
  prerelease: false
104
92
  version_requirements: !ruby/object:Gem::Requirement
105
- none: false
106
93
  requirements:
107
- - - ! '>='
94
+ - - '>='
108
95
  - !ruby/object:Gem::Version
109
96
  version: '0'
110
97
  - !ruby/object:Gem::Dependency
111
98
  name: ipaddress
112
99
  requirement: !ruby/object:Gem::Requirement
113
- none: false
114
100
  requirements:
115
- - - ! '>='
101
+ - - '>='
116
102
  - !ruby/object:Gem::Version
117
103
  version: '0'
118
104
  type: :runtime
119
105
  prerelease: false
120
106
  version_requirements: !ruby/object:Gem::Requirement
121
- none: false
122
107
  requirements:
123
- - - ! '>='
108
+ - - '>='
124
109
  - !ruby/object:Gem::Version
125
110
  version: '0'
126
111
  - !ruby/object:Gem::Dependency
127
112
  name: rake
128
113
  requirement: !ruby/object:Gem::Requirement
129
- none: false
130
114
  requirements:
131
- - - ! '>='
115
+ - - '>='
132
116
  - !ruby/object:Gem::Version
133
117
  version: '0'
134
118
  type: :development
135
119
  prerelease: false
136
120
  version_requirements: !ruby/object:Gem::Requirement
137
- none: false
138
121
  requirements:
139
- - - ! '>='
122
+ - - '>='
140
123
  - !ruby/object:Gem::Version
141
124
  version: '0'
142
125
  - !ruby/object:Gem::Dependency
143
126
  name: rspec-core
144
127
  requirement: !ruby/object:Gem::Requirement
145
- none: false
146
128
  requirements:
147
- - - ! '>='
129
+ - - '>='
148
130
  - !ruby/object:Gem::Version
149
131
  version: '0'
150
132
  type: :development
151
133
  prerelease: false
152
134
  version_requirements: !ruby/object:Gem::Requirement
153
- none: false
154
135
  requirements:
155
- - - ! '>='
136
+ - - '>='
156
137
  - !ruby/object:Gem::Version
157
138
  version: '0'
158
139
  - !ruby/object:Gem::Dependency
159
140
  name: rspec-expectations
160
141
  requirement: !ruby/object:Gem::Requirement
161
- none: false
162
142
  requirements:
163
- - - ! '>='
143
+ - - '>='
164
144
  - !ruby/object:Gem::Version
165
145
  version: '0'
166
146
  type: :development
167
147
  prerelease: false
168
148
  version_requirements: !ruby/object:Gem::Requirement
169
- none: false
170
149
  requirements:
171
- - - ! '>='
150
+ - - '>='
172
151
  - !ruby/object:Gem::Version
173
152
  version: '0'
174
153
  - !ruby/object:Gem::Dependency
175
154
  name: rspec-mocks
176
155
  requirement: !ruby/object:Gem::Requirement
177
- none: false
178
156
  requirements:
179
- - - ! '>='
157
+ - - '>='
180
158
  - !ruby/object:Gem::Version
181
159
  version: '0'
182
160
  type: :development
183
161
  prerelease: false
184
162
  version_requirements: !ruby/object:Gem::Requirement
185
- none: false
186
163
  requirements:
187
- - - ! '>='
164
+ - - '>='
188
165
  - !ruby/object:Gem::Version
189
166
  version: '0'
190
167
  - !ruby/object:Gem::Dependency
191
168
  name: rspec_junit_formatter
192
169
  requirement: !ruby/object:Gem::Requirement
193
- none: false
194
170
  requirements:
195
- - - ! '>='
171
+ - - '>='
196
172
  - !ruby/object:Gem::Version
197
173
  version: '0'
198
174
  type: :development
199
175
  prerelease: false
200
176
  version_requirements: !ruby/object:Gem::Requirement
201
- none: false
202
177
  requirements:
203
- - - ! '>='
178
+ - - '>='
204
179
  - !ruby/object:Gem::Version
205
180
  version: '0'
206
181
  description: Ohai profiles your system and emits JSON
@@ -214,248 +189,246 @@ files:
214
189
  - README.rdoc
215
190
  - Rakefile
216
191
  - docs/man/man1/ohai.1
217
- - lib/ohai.rb
218
- - lib/ohai/plugins/ec2.rb
219
- - lib/ohai/plugins/virtualization.rb
220
- - lib/ohai/plugins/darwin/system_profiler.rb
221
- - lib/ohai/plugins/darwin/ps.rb
192
+ - lib/ohai/application.rb
193
+ - lib/ohai/config.rb
194
+ - lib/ohai/exception.rb
195
+ - lib/ohai/log.rb
196
+ - lib/ohai/mash.rb
197
+ - lib/ohai/mixin/command.rb
198
+ - lib/ohai/mixin/ec2_metadata.rb
199
+ - lib/ohai/mixin/from_file.rb
200
+ - lib/ohai/mixin/gce_metadata.rb
201
+ - lib/ohai/mixin/string.rb
202
+ - lib/ohai/plugins/aix/cpu.rb
203
+ - lib/ohai/plugins/aix/filesystem.rb
204
+ - lib/ohai/plugins/aix/hostname.rb
205
+ - lib/ohai/plugins/aix/memory.rb
206
+ - lib/ohai/plugins/aix/network.rb
207
+ - lib/ohai/plugins/aix/platform.rb
208
+ - lib/ohai/plugins/aix/ps.rb
209
+ - lib/ohai/plugins/aix/uptime.rb
210
+ - lib/ohai/plugins/azure.rb
211
+ - lib/ohai/plugins/c.rb
212
+ - lib/ohai/plugins/chef.rb
213
+ - lib/ohai/plugins/cloud.rb
214
+ - lib/ohai/plugins/command.rb
215
+ - lib/ohai/plugins/darwin/cpu.rb
216
+ - lib/ohai/plugins/darwin/filesystem.rb
217
+ - lib/ohai/plugins/darwin/hostname.rb
222
218
  - lib/ohai/plugins/darwin/kernel.rb
223
219
  - lib/ohai/plugins/darwin/network.rb
224
- - lib/ohai/plugins/darwin/filesystem.rb
225
220
  - lib/ohai/plugins/darwin/platform.rb
226
- - lib/ohai/plugins/darwin/hostname.rb
227
- - lib/ohai/plugins/darwin/cpu.rb
221
+ - lib/ohai/plugins/darwin/ps.rb
222
+ - lib/ohai/plugins/darwin/system_profiler.rb
228
223
  - lib/ohai/plugins/darwin/uptime.rb
229
- - lib/ohai/plugins/kernel.rb
230
- - lib/ohai/plugins/network_listeners.rb
231
- - lib/ohai/plugins/openbsd/ps.rb
232
- - lib/ohai/plugins/openbsd/virtualization.rb
233
- - lib/ohai/plugins/openbsd/kernel.rb
234
- - lib/ohai/plugins/openbsd/network.rb
235
- - lib/ohai/plugins/openbsd/memory.rb
236
- - lib/ohai/plugins/openbsd/filesystem.rb
237
- - lib/ohai/plugins/openbsd/platform.rb
238
- - lib/ohai/plugins/openbsd/hostname.rb
239
- - lib/ohai/plugins/openbsd/cpu.rb
240
- - lib/ohai/plugins/openbsd/uptime.rb
241
- - lib/ohai/plugins/c.rb
242
224
  - lib/ohai/plugins/dmi.rb
243
- - lib/ohai/plugins/java.rb
244
- - lib/ohai/plugins/sigar/network.rb
245
- - lib/ohai/plugins/sigar/memory.rb
246
- - lib/ohai/plugins/sigar/filesystem.rb
247
- - lib/ohai/plugins/sigar/platform.rb
248
- - lib/ohai/plugins/sigar/hostname.rb
249
- - lib/ohai/plugins/sigar/network_route.rb
250
- - lib/ohai/plugins/sigar/cpu.rb
251
- - lib/ohai/plugins/sigar/uptime.rb
225
+ - lib/ohai/plugins/dmi_common.rb
226
+ - lib/ohai/plugins/ec2.rb
227
+ - lib/ohai/plugins/erlang.rb
228
+ - lib/ohai/plugins/eucalyptus.rb
229
+ - lib/ohai/plugins/freebsd/cpu.rb
230
+ - lib/ohai/plugins/freebsd/filesystem.rb
231
+ - lib/ohai/plugins/freebsd/hostname.rb
232
+ - lib/ohai/plugins/freebsd/kernel.rb
233
+ - lib/ohai/plugins/freebsd/memory.rb
234
+ - lib/ohai/plugins/freebsd/network.rb
235
+ - lib/ohai/plugins/freebsd/platform.rb
236
+ - lib/ohai/plugins/freebsd/ps.rb
237
+ - lib/ohai/plugins/freebsd/uptime.rb
238
+ - lib/ohai/plugins/freebsd/virtualization.rb
239
+ - lib/ohai/plugins/gce.rb
240
+ - lib/ohai/plugins/groovy.rb
241
+ - lib/ohai/plugins/hostname.rb
242
+ - lib/ohai/plugins/hpux/cpu.rb
243
+ - lib/ohai/plugins/hpux/filesystem.rb
244
+ - lib/ohai/plugins/hpux/hostname.rb
245
+ - lib/ohai/plugins/hpux/memory.rb
246
+ - lib/ohai/plugins/hpux/network.rb
247
+ - lib/ohai/plugins/hpux/platform.rb
248
+ - lib/ohai/plugins/hpux/ps.rb
249
+ - lib/ohai/plugins/hpux/uptime.rb
252
250
  - lib/ohai/plugins/ip_scopes.rb
253
- - lib/ohai/plugins/linux/ps.rb
254
- - lib/ohai/plugins/linux/virtualization.rb
255
- - lib/ohai/plugins/linux/kernel.rb
256
- - lib/ohai/plugins/linux/network.rb
251
+ - lib/ohai/plugins/java.rb
252
+ - lib/ohai/plugins/kernel.rb
253
+ - lib/ohai/plugins/keys.rb
254
+ - lib/ohai/plugins/languages.rb
255
+ - lib/ohai/plugins/linode.rb
257
256
  - lib/ohai/plugins/linux/block_device.rb
258
- - lib/ohai/plugins/linux/memory.rb
257
+ - lib/ohai/plugins/linux/cpu.rb
259
258
  - lib/ohai/plugins/linux/filesystem.rb
260
- - lib/ohai/plugins/linux/platform.rb
261
259
  - lib/ohai/plugins/linux/hostname.rb
262
- - lib/ohai/plugins/linux/cpu.rb
263
- - lib/ohai/plugins/linux/uptime.rb
260
+ - lib/ohai/plugins/linux/kernel.rb
264
261
  - lib/ohai/plugins/linux/lsb.rb
265
- - lib/ohai/plugins/os.rb
266
- - lib/ohai/plugins/network.rb
267
- - lib/ohai/plugins/chef.rb
268
- - lib/ohai/plugins/groovy.rb
269
- - lib/ohai/plugins/ruby.rb
270
- - lib/ohai/plugins/passwd.rb
271
- - lib/ohai/plugins/platform.rb
272
- - lib/ohai/plugins/keys.rb
273
- - lib/ohai/plugins/hostname.rb
274
- - lib/ohai/plugins/aix/ps.rb
275
- - lib/ohai/plugins/aix/network.rb
276
- - lib/ohai/plugins/aix/memory.rb
277
- - lib/ohai/plugins/aix/filesystem.rb
278
- - lib/ohai/plugins/aix/platform.rb
279
- - lib/ohai/plugins/aix/hostname.rb
280
- - lib/ohai/plugins/aix/cpu.rb
281
- - lib/ohai/plugins/aix/uptime.rb
282
- - lib/ohai/plugins/windows/kernel.rb
283
- - lib/ohai/plugins/windows/network.rb
284
- - lib/ohai/plugins/windows/filesystem.rb
285
- - lib/ohai/plugins/windows/platform.rb
286
- - lib/ohai/plugins/windows/kernel_devices.rb
287
- - lib/ohai/plugins/windows/hostname.rb
288
- - lib/ohai/plugins/windows/cpu.rb
289
- - lib/ohai/plugins/windows/uptime.rb
290
- - lib/ohai/plugins/perl.rb
262
+ - lib/ohai/plugins/linux/memory.rb
263
+ - lib/ohai/plugins/linux/network.rb
264
+ - lib/ohai/plugins/linux/platform.rb
265
+ - lib/ohai/plugins/linux/ps.rb
266
+ - lib/ohai/plugins/linux/uptime.rb
267
+ - lib/ohai/plugins/linux/virtualization.rb
291
268
  - lib/ohai/plugins/lua.rb
292
- - lib/ohai/plugins/freebsd/ps.rb
293
- - lib/ohai/plugins/freebsd/virtualization.rb
294
- - lib/ohai/plugins/freebsd/kernel.rb
295
- - lib/ohai/plugins/freebsd/network.rb
296
- - lib/ohai/plugins/freebsd/memory.rb
297
- - lib/ohai/plugins/freebsd/filesystem.rb
298
- - lib/ohai/plugins/freebsd/platform.rb
299
- - lib/ohai/plugins/freebsd/hostname.rb
300
- - lib/ohai/plugins/freebsd/cpu.rb
301
- - lib/ohai/plugins/freebsd/uptime.rb
302
- - lib/ohai/plugins/ssh_host_key.rb
303
- - lib/ohai/plugins/ohai_time.rb
304
- - lib/ohai/plugins/azure.rb
305
- - lib/ohai/plugins/linode.rb
306
- - lib/ohai/plugins/command.rb
307
- - lib/ohai/plugins/uptime.rb
308
- - lib/ohai/plugins/cloud.rb
309
- - lib/ohai/plugins/netbsd/ps.rb
310
- - lib/ohai/plugins/netbsd/virtualization.rb
269
+ - lib/ohai/plugins/mono.rb
270
+ - lib/ohai/plugins/netbsd/cpu.rb
271
+ - lib/ohai/plugins/netbsd/filesystem.rb
272
+ - lib/ohai/plugins/netbsd/hostname.rb
311
273
  - lib/ohai/plugins/netbsd/kernel.rb
312
- - lib/ohai/plugins/netbsd/network.rb
313
274
  - lib/ohai/plugins/netbsd/memory.rb
314
- - lib/ohai/plugins/netbsd/filesystem.rb
275
+ - lib/ohai/plugins/netbsd/network.rb
315
276
  - lib/ohai/plugins/netbsd/platform.rb
316
- - lib/ohai/plugins/netbsd/hostname.rb
317
- - lib/ohai/plugins/netbsd/cpu.rb
277
+ - lib/ohai/plugins/netbsd/ps.rb
318
278
  - lib/ohai/plugins/netbsd/uptime.rb
279
+ - lib/ohai/plugins/netbsd/virtualization.rb
280
+ - lib/ohai/plugins/network.rb
281
+ - lib/ohai/plugins/network_listeners.rb
282
+ - lib/ohai/plugins/nodejs.rb
283
+ - lib/ohai/plugins/ohai.rb
284
+ - lib/ohai/plugins/ohai_time.rb
285
+ - lib/ohai/plugins/openbsd/cpu.rb
286
+ - lib/ohai/plugins/openbsd/filesystem.rb
287
+ - lib/ohai/plugins/openbsd/hostname.rb
288
+ - lib/ohai/plugins/openbsd/kernel.rb
289
+ - lib/ohai/plugins/openbsd/memory.rb
290
+ - lib/ohai/plugins/openbsd/network.rb
291
+ - lib/ohai/plugins/openbsd/platform.rb
292
+ - lib/ohai/plugins/openbsd/ps.rb
293
+ - lib/ohai/plugins/openbsd/uptime.rb
294
+ - lib/ohai/plugins/openbsd/virtualization.rb
295
+ - lib/ohai/plugins/openstack.rb
296
+ - lib/ohai/plugins/os.rb
297
+ - lib/ohai/plugins/passwd.rb
298
+ - lib/ohai/plugins/perl.rb
319
299
  - lib/ohai/plugins/php.rb
320
- - lib/ohai/plugins/mono.rb
321
- - lib/ohai/plugins/dmi_common.rb
322
- - lib/ohai/plugins/eucalyptus.rb
323
- - lib/ohai/plugins/solaris2/ps.rb
324
- - lib/ohai/plugins/solaris2/virtualization.rb
325
- - lib/ohai/plugins/solaris2/kernel.rb
300
+ - lib/ohai/plugins/platform.rb
301
+ - lib/ohai/plugins/python.rb
302
+ - lib/ohai/plugins/rackspace.rb
303
+ - lib/ohai/plugins/root_group.rb
304
+ - lib/ohai/plugins/ruby.rb
305
+ - lib/ohai/plugins/sigar/cpu.rb
306
+ - lib/ohai/plugins/sigar/filesystem.rb
307
+ - lib/ohai/plugins/sigar/hostname.rb
308
+ - lib/ohai/plugins/sigar/memory.rb
309
+ - lib/ohai/plugins/sigar/network.rb
310
+ - lib/ohai/plugins/sigar/network_route.rb
311
+ - lib/ohai/plugins/sigar/platform.rb
312
+ - lib/ohai/plugins/sigar/uptime.rb
313
+ - lib/ohai/plugins/solaris2/cpu.rb
326
314
  - lib/ohai/plugins/solaris2/dmi.rb
327
- - lib/ohai/plugins/solaris2/zpools.rb
328
- - lib/ohai/plugins/solaris2/network.rb
329
315
  - lib/ohai/plugins/solaris2/filesystem.rb
330
- - lib/ohai/plugins/solaris2/platform.rb
331
316
  - lib/ohai/plugins/solaris2/hostname.rb
332
- - lib/ohai/plugins/solaris2/cpu.rb
317
+ - lib/ohai/plugins/solaris2/kernel.rb
318
+ - lib/ohai/plugins/solaris2/network.rb
319
+ - lib/ohai/plugins/solaris2/platform.rb
320
+ - lib/ohai/plugins/solaris2/ps.rb
333
321
  - lib/ohai/plugins/solaris2/uptime.rb
334
- - lib/ohai/plugins/erlang.rb
335
- - lib/ohai/plugins/hpux/ps.rb
336
- - lib/ohai/plugins/hpux/network.rb
337
- - lib/ohai/plugins/hpux/memory.rb
338
- - lib/ohai/plugins/hpux/filesystem.rb
339
- - lib/ohai/plugins/hpux/platform.rb
340
- - lib/ohai/plugins/hpux/hostname.rb
341
- - lib/ohai/plugins/hpux/cpu.rb
342
- - lib/ohai/plugins/hpux/uptime.rb
343
- - lib/ohai/plugins/nodejs.rb
344
- - lib/ohai/plugins/python.rb
345
- - lib/ohai/plugins/root_group.rb
346
- - lib/ohai/plugins/rackspace.rb
347
- - lib/ohai/plugins/openstack.rb
348
- - lib/ohai/plugins/languages.rb
349
- - lib/ohai/plugins/ohai.rb
350
- - lib/ohai/plugins/gce.rb
351
- - lib/ohai/application.rb
352
- - lib/ohai/version.rb
353
- - lib/ohai/mash.rb
354
- - lib/ohai/exception.rb
355
- - lib/ohai/config.rb
356
- - lib/ohai/log.rb
357
- - lib/ohai/mixin/ec2_metadata.rb
358
- - lib/ohai/mixin/command.rb
359
- - lib/ohai/mixin/string.rb
360
- - lib/ohai/mixin/gce_metadata.rb
361
- - lib/ohai/mixin/from_file.rb
322
+ - lib/ohai/plugins/solaris2/virtualization.rb
323
+ - lib/ohai/plugins/solaris2/zpools.rb
324
+ - lib/ohai/plugins/ssh_host_key.rb
325
+ - lib/ohai/plugins/uptime.rb
326
+ - lib/ohai/plugins/virtualization.rb
327
+ - lib/ohai/plugins/windows/cpu.rb
328
+ - lib/ohai/plugins/windows/filesystem.rb
329
+ - lib/ohai/plugins/windows/hostname.rb
330
+ - lib/ohai/plugins/windows/kernel.rb
331
+ - lib/ohai/plugins/windows/kernel_devices.rb
332
+ - lib/ohai/plugins/windows/network.rb
333
+ - lib/ohai/plugins/windows/platform.rb
334
+ - lib/ohai/plugins/windows/uptime.rb
362
335
  - lib/ohai/system.rb
336
+ - lib/ohai/version.rb
337
+ - lib/ohai.rb
338
+ - spec/ohai_spec.rb
339
+ - spec/rcov.opts
340
+ - spec/spec.opts
341
+ - spec/spec_helper.rb
342
+ - spec/support/platform_helpers.rb
343
+ - spec/unit/mixin/command_spec.rb
344
+ - spec/unit/mixin/ec2_metadata_spec.rb
345
+ - spec/unit/mixin/from_file_spec.rb
346
+ - spec/unit/plugins/azure_spec.rb
347
+ - spec/unit/plugins/c_spec.rb
348
+ - spec/unit/plugins/chef_spec.rb
349
+ - spec/unit/plugins/cloud_spec.rb
350
+ - spec/unit/plugins/darwin/cpu_spec.rb
363
351
  - spec/unit/plugins/darwin/hostname_spec.rb
364
- - spec/unit/plugins/darwin/system_profiler_spec.rb
365
352
  - spec/unit/plugins/darwin/kernel_spec.rb
366
- - spec/unit/plugins/darwin/platform_spec.rb
367
353
  - spec/unit/plugins/darwin/network_spec.rb
354
+ - spec/unit/plugins/darwin/platform_spec.rb
368
355
  - spec/unit/plugins/darwin/system_profiler_output.rb
369
- - spec/unit/plugins/darwin/cpu_spec.rb
370
- - spec/unit/plugins/openbsd/hostname_spec.rb
371
- - spec/unit/plugins/openbsd/kernel_spec.rb
372
- - spec/unit/plugins/openbsd/platform_spec.rb
373
- - spec/unit/plugins/nodejs_spec.rb
374
- - spec/unit/plugins/perl_spec.rb
375
- - spec/unit/plugins/sigar/network_route_spec.rb
356
+ - spec/unit/plugins/darwin/system_profiler_spec.rb
357
+ - spec/unit/plugins/dmi_spec.rb
358
+ - spec/unit/plugins/ec2_spec.rb
359
+ - spec/unit/plugins/erlang_spec.rb
360
+ - spec/unit/plugins/eucalyptus_spec.rb
361
+ - spec/unit/plugins/fail_spec.rb
362
+ - spec/unit/plugins/freebsd/hostname_spec.rb
363
+ - spec/unit/plugins/freebsd/kernel_spec.rb
364
+ - spec/unit/plugins/freebsd/platform_spec.rb
365
+ - spec/unit/plugins/freebsd/virtualization_spec.rb
366
+ - spec/unit/plugins/gce_spec.rb
367
+ - spec/unit/plugins/groovy_spec.rb
368
+ - spec/unit/plugins/hostname_spec.rb
369
+ - spec/unit/plugins/java_spec.rb
370
+ - spec/unit/plugins/kernel_spec.rb
371
+ - spec/unit/plugins/linode_spec.rb
372
+ - spec/unit/plugins/linux/cpu_spec.rb
373
+ - spec/unit/plugins/linux/filesystem_spec.rb
376
374
  - spec/unit/plugins/linux/hostname_spec.rb
377
375
  - spec/unit/plugins/linux/kernel_spec.rb
378
- - spec/unit/plugins/linux/virtualization_spec.rb
379
376
  - spec/unit/plugins/linux/lsb_spec.rb
380
- - spec/unit/plugins/linux/platform_spec.rb
381
377
  - spec/unit/plugins/linux/network_spec.rb
382
- - spec/unit/plugins/linux/cpu_spec.rb
383
- - spec/unit/plugins/linux/filesystem_spec.rb
378
+ - spec/unit/plugins/linux/platform_spec.rb
384
379
  - spec/unit/plugins/linux/uptime_spec.rb
385
- - spec/unit/plugins/os_spec.rb
386
- - spec/unit/plugins/gce_spec.rb
387
- - spec/unit/plugins/php_spec.rb
388
- - spec/unit/plugins/hostname_spec.rb
389
- - spec/unit/plugins/freebsd/hostname_spec.rb
390
- - spec/unit/plugins/freebsd/kernel_spec.rb
391
- - spec/unit/plugins/freebsd/virtualization_spec.rb
392
- - spec/unit/plugins/freebsd/platform_spec.rb
393
- - spec/unit/plugins/ec2_spec.rb
394
- - spec/unit/plugins/kernel_spec.rb
395
- - spec/unit/plugins/ohai_time_spec.rb
396
- - spec/unit/plugins/root_group_spec.rb
397
- - spec/unit/plugins/python_spec.rb
380
+ - spec/unit/plugins/linux/virtualization_spec.rb
381
+ - spec/unit/plugins/lua_spec.rb
382
+ - spec/unit/plugins/mono_spec.rb
398
383
  - spec/unit/plugins/netbsd/hostname_spec.rb
399
384
  - spec/unit/plugins/netbsd/kernel_spec.rb
400
385
  - spec/unit/plugins/netbsd/platform_spec.rb
401
- - spec/unit/plugins/erlang_spec.rb
402
- - spec/unit/plugins/c_spec.rb
386
+ - spec/unit/plugins/network_spec.rb
387
+ - spec/unit/plugins/nodejs_spec.rb
388
+ - spec/unit/plugins/ohai_spec.rb
389
+ - spec/unit/plugins/ohai_time_spec.rb
390
+ - spec/unit/plugins/openbsd/hostname_spec.rb
391
+ - spec/unit/plugins/openbsd/kernel_spec.rb
392
+ - spec/unit/plugins/openbsd/platform_spec.rb
393
+ - spec/unit/plugins/os_spec.rb
394
+ - spec/unit/plugins/passwd_spec.rb
395
+ - spec/unit/plugins/perl_spec.rb
396
+ - spec/unit/plugins/php_spec.rb
403
397
  - spec/unit/plugins/platform_spec.rb
404
- - spec/unit/plugins/azure_spec.rb
405
- - spec/unit/plugins/java_spec.rb
398
+ - spec/unit/plugins/python_spec.rb
399
+ - spec/unit/plugins/rackspace_spec.rb
400
+ - spec/unit/plugins/root_group_spec.rb
401
+ - spec/unit/plugins/ruby_spec.rb
402
+ - spec/unit/plugins/sigar/network_route_spec.rb
406
403
  - spec/unit/plugins/solaris2/hostname_spec.rb
407
404
  - spec/unit/plugins/solaris2/kernel_spec.rb
408
- - spec/unit/plugins/solaris2/virtualization_spec.rb
409
- - spec/unit/plugins/solaris2/platform_spec.rb
410
405
  - spec/unit/plugins/solaris2/network_spec.rb
411
- - spec/unit/plugins/linode_spec.rb
412
- - spec/unit/plugins/cloud_spec.rb
413
- - spec/unit/plugins/ruby_spec.rb
414
- - spec/unit/plugins/network_spec.rb
415
- - spec/unit/plugins/ohai_spec.rb
416
- - spec/unit/plugins/mono_spec.rb
417
- - spec/unit/plugins/lua_spec.rb
418
- - spec/unit/plugins/rackspace_spec.rb
419
- - spec/unit/plugins/chef_spec.rb
420
- - spec/unit/plugins/passwd_spec.rb
406
+ - spec/unit/plugins/solaris2/platform_spec.rb
407
+ - spec/unit/plugins/solaris2/virtualization_spec.rb
421
408
  - spec/unit/plugins/ssh_host_keys_spec.rb
422
- - spec/unit/plugins/groovy_spec.rb
423
- - spec/unit/plugins/fail_spec.rb
424
- - spec/unit/plugins/dmi_spec.rb
425
- - spec/unit/plugins/eucalyptus_spec.rb
426
409
  - spec/unit/system_spec.rb
427
- - spec/unit/mixin/ec2_metadata_spec.rb
428
- - spec/unit/mixin/command_spec.rb
429
- - spec/unit/mixin/from_file_spec.rb
430
- - spec/spec_helper.rb
431
- - spec/spec.opts
432
- - spec/support/platform_helpers.rb
433
- - spec/rcov.opts
434
- - spec/ohai_spec.rb
435
- - !binary |-
436
- YmluL29oYWk=
410
+ - bin/ohai
437
411
  homepage: http://wiki.opscode.com/display/chef/Ohai
438
412
  licenses: []
413
+ metadata: {}
439
414
  post_install_message:
440
415
  rdoc_options: []
441
416
  require_paths:
442
417
  - lib
443
418
  required_ruby_version: !ruby/object:Gem::Requirement
444
- none: false
445
419
  requirements:
446
- - - ! '>='
420
+ - - '>='
447
421
  - !ruby/object:Gem::Version
448
422
  version: '0'
449
423
  required_rubygems_version: !ruby/object:Gem::Requirement
450
- none: false
451
424
  requirements:
452
- - - ! '>'
425
+ - - '>'
453
426
  - !ruby/object:Gem::Version
454
427
  version: 1.3.1
455
428
  requirements: []
456
429
  rubyforge_project:
457
- rubygems_version: 1.8.21
430
+ rubygems_version: 2.0.3
458
431
  signing_key:
459
- specification_version: 3
432
+ specification_version: 4
460
433
  summary: Ohai profiles your system and emits JSON
461
434
  test_files: []