ohai 7.6.0.rc.1 → 8.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/lib/ohai/version.rb +1 -1
- data/spec/functional/plugins/powershell_spec.rb +4 -4
- data/spec/functional/plugins/root_group_spec.rb +1 -1
- data/spec/ohai_spec.rb +1 -1
- data/spec/spec_helper.rb +12 -12
- data/spec/unit/dsl/plugin_spec.rb +40 -40
- data/spec/unit/hints_spec.rb +3 -3
- data/spec/unit/loader_spec.rb +16 -16
- data/spec/unit/mixin/cloudstack_metadata_spec.rb +1 -1
- data/spec/unit/mixin/command_spec.rb +6 -6
- data/spec/unit/mixin/ec2_metadata_spec.rb +8 -8
- data/spec/unit/plugins/aix/cpu_spec.rb +15 -15
- data/spec/unit/plugins/aix/filesystem_spec.rb +15 -15
- data/spec/unit/plugins/aix/hostname_spec.rb +3 -3
- data/spec/unit/plugins/aix/kernel_spec.rb +14 -14
- data/spec/unit/plugins/aix/network_spec.rb +43 -43
- data/spec/unit/plugins/aix/platform_spec.rb +5 -5
- data/spec/unit/plugins/aix/uptime_spec.rb +7 -7
- data/spec/unit/plugins/aix/virtualization_spec.rb +3 -3
- data/spec/unit/plugins/azure_spec.rb +18 -18
- data/spec/unit/plugins/c_spec.rb +52 -52
- data/spec/unit/plugins/chef_spec.rb +1 -1
- data/spec/unit/plugins/cloud_spec.rb +31 -31
- data/spec/unit/plugins/cloud_v2_spec.rb +33 -33
- data/spec/unit/plugins/cloudstack_spec.rb +6 -6
- data/spec/unit/plugins/darwin/cpu_spec.rb +19 -19
- data/spec/unit/plugins/darwin/hostname_spec.rb +6 -6
- data/spec/unit/plugins/darwin/kernel_spec.rb +14 -14
- data/spec/unit/plugins/darwin/memory_spec.rb +7 -7
- data/spec/unit/plugins/darwin/network_spec.rb +358 -358
- data/spec/unit/plugins/darwin/platform_spec.rb +10 -10
- data/spec/unit/plugins/darwin/system_profiler_spec.rb +4 -4
- data/spec/unit/plugins/dmi_spec.rb +3 -3
- data/spec/unit/plugins/ec2_spec.rb +80 -80
- data/spec/unit/plugins/erlang_spec.rb +7 -7
- data/spec/unit/plugins/eucalyptus_spec.rb +28 -28
- data/spec/unit/plugins/fail_spec.rb +8 -8
- data/spec/unit/plugins/freebsd/cpu_spec.rb +10 -10
- data/spec/unit/plugins/freebsd/hostname_spec.rb +4 -4
- data/spec/unit/plugins/freebsd/kernel_spec.rb +6 -6
- data/spec/unit/plugins/freebsd/os_spec.rb +3 -3
- data/spec/unit/plugins/freebsd/platform_spec.rb +5 -5
- data/spec/unit/plugins/freebsd/virtualization_spec.rb +20 -20
- data/spec/unit/plugins/gce_spec.rb +18 -18
- data/spec/unit/plugins/go_spec.rb +5 -5
- data/spec/unit/plugins/groovy_spec.rb +5 -5
- data/spec/unit/plugins/hostname_spec.rb +24 -24
- data/spec/unit/plugins/init_package_spec.rb +5 -5
- data/spec/unit/plugins/ip_scopes_spec.rb +1 -1
- data/spec/unit/plugins/java_spec.rb +23 -23
- data/spec/unit/plugins/joyent_spec.rb +13 -13
- data/spec/unit/plugins/kernel_spec.rb +20 -20
- data/spec/unit/plugins/linode_spec.rb +18 -18
- data/spec/unit/plugins/linux/cpu_spec.rb +25 -25
- data/spec/unit/plugins/linux/filesystem_spec.rb +61 -60
- data/spec/unit/plugins/linux/hostname_spec.rb +7 -7
- data/spec/unit/plugins/linux/kernel_spec.rb +5 -5
- data/spec/unit/plugins/linux/lsb_spec.rb +23 -23
- data/spec/unit/plugins/linux/mdadm_spec.rb +11 -11
- data/spec/unit/plugins/linux/platform_spec.rb +167 -167
- data/spec/unit/plugins/linux/uptime_spec.rb +6 -6
- data/spec/unit/plugins/linux/virtualization_spec.rb +156 -156
- data/spec/unit/plugins/lua_spec.rb +5 -5
- data/spec/unit/plugins/mono_spec.rb +5 -5
- data/spec/unit/plugins/netbsd/hostname_spec.rb +6 -6
- data/spec/unit/plugins/netbsd/kernel_spec.rb +6 -6
- data/spec/unit/plugins/netbsd/platform_spec.rb +5 -5
- data/spec/unit/plugins/network_spec.rb +116 -116
- data/spec/unit/plugins/nodejs_spec.rb +5 -5
- data/spec/unit/plugins/ohai_spec.rb +1 -1
- data/spec/unit/plugins/ohai_time_spec.rb +5 -5
- data/spec/unit/plugins/openbsd/hostname_spec.rb +6 -6
- data/spec/unit/plugins/openbsd/kernel_spec.rb +6 -6
- data/spec/unit/plugins/openbsd/platform_spec.rb +4 -4
- data/spec/unit/plugins/openstack_spec.rb +8 -8
- data/spec/unit/plugins/os_spec.rb +5 -5
- data/spec/unit/plugins/passwd_spec.rb +13 -13
- data/spec/unit/plugins/perl_spec.rb +8 -8
- data/spec/unit/plugins/php_spec.rb +7 -7
- data/spec/unit/plugins/platform_spec.rb +9 -9
- data/spec/unit/plugins/powershell_spec.rb +10 -10
- data/spec/unit/plugins/rackspace_spec.rb +72 -70
- data/spec/unit/plugins/root_group_spec.rb +14 -14
- data/spec/unit/plugins/ruby_spec.rb +1 -1
- data/spec/unit/plugins/sigar/network_route_spec.rb +17 -17
- data/spec/unit/plugins/solaris2/cpu_spec.rb +18 -18
- data/spec/unit/plugins/solaris2/hostname_spec.rb +4 -4
- data/spec/unit/plugins/solaris2/kernel_spec.rb +8 -8
- data/spec/unit/plugins/solaris2/memory_spec.rb +3 -3
- data/spec/unit/plugins/solaris2/network_spec.rb +13 -13
- data/spec/unit/plugins/solaris2/platform_spec.rb +14 -14
- data/spec/unit/plugins/solaris2/virtualization_spec.rb +24 -24
- data/spec/unit/plugins/solaris2/zpools_spec.rb +6 -6
- data/spec/unit/plugins/ssh_host_keys_spec.rb +18 -18
- data/spec/unit/runner_spec.rb +26 -26
- data/spec/unit/system_spec.rb +54 -54
- data/spec/unit/util/file_helper_spec.rb +2 -2
- metadata +50 -95
data/spec/unit/system_spec.rb
CHANGED
@@ -27,15 +27,15 @@ describe "Ohai::System" do
|
|
27
27
|
|
28
28
|
describe "#initialize" do
|
29
29
|
it "should return an Ohai::System object" do
|
30
|
-
ohai.
|
30
|
+
expect(ohai).to be_a_kind_of(Ohai::System)
|
31
31
|
end
|
32
32
|
|
33
33
|
it "should set @attributes to a ProvidesMap" do
|
34
|
-
ohai.provides_map.
|
34
|
+
expect(ohai.provides_map).to be_a_kind_of(Ohai::ProvidesMap)
|
35
35
|
end
|
36
36
|
|
37
37
|
it "should set @v6_dependency_solver to a Hash" do
|
38
|
-
ohai.v6_dependency_solver.
|
38
|
+
expect(ohai.v6_dependency_solver).to be_a_kind_of(Hash)
|
39
39
|
end
|
40
40
|
end
|
41
41
|
|
@@ -57,9 +57,9 @@ EOF
|
|
57
57
|
|
58
58
|
it "load_plugins() should load all the plugins" do
|
59
59
|
ohai.load_plugins
|
60
|
-
ohai.provides_map.map.keys.
|
61
|
-
ohai.v6_dependency_solver.keys.
|
62
|
-
Ohai::NamedPlugin.const_get(:Zoo).
|
60
|
+
expect(ohai.provides_map.map.keys).to include("seals")
|
61
|
+
expect(ohai.v6_dependency_solver.keys).to include("lake.rb")
|
62
|
+
expect(Ohai::NamedPlugin.const_get(:Zoo)).to eq(Ohai::NamedPlugin::Zoo)
|
63
63
|
end
|
64
64
|
end
|
65
65
|
|
@@ -95,12 +95,12 @@ EOF
|
|
95
95
|
|
96
96
|
it "load_plugins() should load all the plugins" do
|
97
97
|
ohai.load_plugins
|
98
|
-
ohai.provides_map.map.keys.
|
99
|
-
ohai.provides_map.map.keys.
|
100
|
-
ohai.v6_dependency_solver.keys.
|
101
|
-
ohai.v6_dependency_solver.keys.
|
102
|
-
Ohai::NamedPlugin.const_get(:Zoo).
|
103
|
-
Ohai::NamedPlugin.const_get(:Nature).
|
98
|
+
expect(ohai.provides_map.map.keys).to include("seals")
|
99
|
+
expect(ohai.provides_map.map.keys).to include("crabs")
|
100
|
+
expect(ohai.v6_dependency_solver.keys).to include("lake.rb")
|
101
|
+
expect(ohai.v6_dependency_solver.keys).to include("mountain.rb")
|
102
|
+
expect(Ohai::NamedPlugin.const_get(:Zoo)).to eq(Ohai::NamedPlugin::Zoo)
|
103
|
+
expect(Ohai::NamedPlugin.const_get(:Nature)).to eq(Ohai::NamedPlugin::Nature)
|
104
104
|
end
|
105
105
|
|
106
106
|
end
|
@@ -128,8 +128,8 @@ EOF
|
|
128
128
|
it "should collect data from all the plugins" do
|
129
129
|
Ohai::Config[:plugin_path] = [ path_to(".") ]
|
130
130
|
ohai.all_plugins
|
131
|
-
ohai.data[:zoo].
|
132
|
-
ohai.data[:park].
|
131
|
+
expect(ohai.data[:zoo]).to eq("animals")
|
132
|
+
expect(ohai.data[:park]).to eq("plants")
|
133
133
|
end
|
134
134
|
|
135
135
|
describe "when using :disabled_plugins" do
|
@@ -144,8 +144,8 @@ EOF
|
|
144
144
|
it "shouldn't run disabled version 6 plugins" do
|
145
145
|
Ohai::Config[:plugin_path] = [ path_to(".") ]
|
146
146
|
ohai.all_plugins
|
147
|
-
ohai.data[:zoo].
|
148
|
-
ohai.data[:park].
|
147
|
+
expect(ohai.data[:zoo]).to be_nil
|
148
|
+
expect(ohai.data[:park]).to eq("plants")
|
149
149
|
end
|
150
150
|
end
|
151
151
|
|
@@ -193,7 +193,7 @@ EOF
|
|
193
193
|
let(:v6_plugin) { v6_plugin_class.new(ohai_system, "/v6_plugin.rb", "/") }
|
194
194
|
|
195
195
|
before do
|
196
|
-
ohai_system.
|
196
|
+
allow(ohai_system).to receive(:load_plugins) # TODO: temporary hack - don't run unrelated plugins...
|
197
197
|
[ primary_plugin, dependency_plugin_one, dependency_plugin_two, unrelated_plugin].each do |plugin|
|
198
198
|
plugin_provides = plugin.class.provides_attrs
|
199
199
|
ohai_system.provides_map.set_providers_for(plugin, plugin_provides)
|
@@ -247,7 +247,7 @@ EOF
|
|
247
247
|
it "should collect platform specific" do
|
248
248
|
Ohai::Config[:plugin_path] = [ path_to(".") ]
|
249
249
|
ohai.all_plugins
|
250
|
-
ohai.data[:message].
|
250
|
+
expect(ohai.data[:message]).to eq("platform_specific_message")
|
251
251
|
end
|
252
252
|
end
|
253
253
|
|
@@ -274,16 +274,16 @@ EOF
|
|
274
274
|
it "should collect data from all the plugins" do
|
275
275
|
Ohai::Config[:plugin_path] = [ path_to(".") ]
|
276
276
|
ohai.all_plugins
|
277
|
-
ohai.data[:zoo].
|
278
|
-
ohai.data[:park].
|
277
|
+
expect(ohai.data[:zoo]).to eq("animals")
|
278
|
+
expect(ohai.data[:park]).to eq("plants")
|
279
279
|
end
|
280
280
|
|
281
281
|
it "should write an error to Ohai::Log" do
|
282
282
|
Ohai::Config[:plugin_path] = [ path_to(".") ]
|
283
283
|
# Make sure the stubbing of runner is not overriden with reset_system during test
|
284
|
-
ohai.
|
285
|
-
ohai.instance_variable_get("@runner").
|
286
|
-
Ohai::Log.
|
284
|
+
allow(ohai).to receive(:reset_system)
|
285
|
+
allow(ohai.instance_variable_get("@runner")).to receive(:run_plugin).and_raise(Ohai::Exceptions::AttributeNotFound)
|
286
|
+
expect(Ohai::Log).to receive(:error).with(/Encountered error while running plugins/)
|
287
287
|
expect { ohai.all_plugins }.to raise_error(Ohai::Exceptions::AttributeNotFound)
|
288
288
|
end
|
289
289
|
|
@@ -299,8 +299,8 @@ EOF
|
|
299
299
|
it "shouldn't run disabled plugins" do
|
300
300
|
Ohai::Config[:plugin_path] = [ path_to(".") ]
|
301
301
|
ohai.all_plugins
|
302
|
-
ohai.data[:zoo].
|
303
|
-
ohai.data[:park].
|
302
|
+
expect(ohai.data[:zoo]).to be_nil
|
303
|
+
expect(ohai.data[:park]).to eq("plants")
|
304
304
|
end
|
305
305
|
end
|
306
306
|
end
|
@@ -348,10 +348,10 @@ EOF
|
|
348
348
|
it "shouldn't run disabled plugins" do
|
349
349
|
Ohai::Config[:plugin_path] = [ path_to(".") ]
|
350
350
|
ohai.all_plugins
|
351
|
-
ohai.data[:zoo].
|
352
|
-
ohai.data[:nature].
|
353
|
-
ohai.data[:park].
|
354
|
-
ohai.data[:home].
|
351
|
+
expect(ohai.data[:zoo]).to be_nil
|
352
|
+
expect(ohai.data[:nature]).to eq("cougars")
|
353
|
+
expect(ohai.data[:park]).to be_nil
|
354
|
+
expect(ohai.data[:home]).to eq("dog")
|
355
355
|
end
|
356
356
|
end
|
357
357
|
end
|
@@ -395,14 +395,14 @@ EOF
|
|
395
395
|
it "should collect all data" do
|
396
396
|
ohai.all_plugins
|
397
397
|
[:v6message, :v7message, :messages].each do |attribute|
|
398
|
-
ohai.data.
|
398
|
+
expect(ohai.data).to have_key(attribute)
|
399
399
|
end
|
400
400
|
|
401
|
-
ohai.data[:v6message].
|
402
|
-
ohai.data[:v7message].
|
401
|
+
expect(ohai.data[:v6message]).to eql("update me!")
|
402
|
+
expect(ohai.data[:v7message]).to eql("v7 plugins are awesome!")
|
403
403
|
[:v6message, :v7message].each do |subattr|
|
404
|
-
ohai.data[:messages].
|
405
|
-
ohai.data[:messages][subattr].
|
404
|
+
expect(ohai.data[:messages]).to have_key(subattr)
|
405
|
+
expect(ohai.data[:messages][subattr]).to eql(ohai.data[subattr])
|
406
406
|
end
|
407
407
|
end
|
408
408
|
end
|
@@ -438,7 +438,7 @@ EOF
|
|
438
438
|
it "version 6 should run" do
|
439
439
|
ohai.load_plugins
|
440
440
|
ohai.require_plugin("message")
|
441
|
-
ohai.data[:message].
|
441
|
+
expect(ohai.data[:message]).to eql("From Version 6")
|
442
442
|
end
|
443
443
|
end
|
444
444
|
|
@@ -485,10 +485,10 @@ EOF
|
|
485
485
|
|
486
486
|
it "should collect all the data properly" do
|
487
487
|
ohai.all_plugins
|
488
|
-
ohai.data[:v7message].
|
489
|
-
ohai.data[:zoo].
|
490
|
-
ohai.data[:message][:v6message].
|
491
|
-
ohai.data[:message][:copy_message].
|
488
|
+
expect(ohai.data[:v7message]).to eq("Hellos from 7: animals")
|
489
|
+
expect(ohai.data[:zoo]).to eq("animals")
|
490
|
+
expect(ohai.data[:message][:v6message]).to eq("Hellos from 6")
|
491
|
+
expect(ohai.data[:message][:copy_message]).to eq("Hellos from 7: animals")
|
492
492
|
end
|
493
493
|
end
|
494
494
|
|
@@ -511,7 +511,7 @@ EOF
|
|
511
511
|
end
|
512
512
|
|
513
513
|
it "should raise DependencyNotFound" do
|
514
|
-
|
514
|
+
expect { ohai.all_plugins }.to raise_error(Ohai::Exceptions::DependencyNotFound)
|
515
515
|
end
|
516
516
|
end
|
517
517
|
end
|
@@ -535,7 +535,7 @@ EOF
|
|
535
535
|
|
536
536
|
it "reloads only the v6 plugin when given a specific plugin to load" do
|
537
537
|
ohai.all_plugins
|
538
|
-
|
538
|
+
expect { ohai.all_plugins("a_v6plugin") }.not_to raise_error
|
539
539
|
end
|
540
540
|
|
541
541
|
end
|
@@ -565,7 +565,7 @@ EOF
|
|
565
565
|
initial_value = ohai.data["random"]
|
566
566
|
ohai.all_plugins
|
567
567
|
updated_value = ohai.data["random"]
|
568
|
-
initial_value.
|
568
|
+
expect(initial_value).not_to eq(updated_value)
|
569
569
|
end
|
570
570
|
|
571
571
|
end
|
@@ -623,21 +623,21 @@ EOF
|
|
623
623
|
end
|
624
624
|
|
625
625
|
it "should rerun the plugin providing the desired attributes" do
|
626
|
-
ohai.data[:desired_attr_count].
|
626
|
+
expect(ohai.data[:desired_attr_count]).to eq(1)
|
627
627
|
ohai.refresh_plugins("desired_attr")
|
628
|
-
ohai.data[:desired_attr_count].
|
628
|
+
expect(ohai.data[:desired_attr_count]).to eq(2)
|
629
629
|
end
|
630
630
|
|
631
631
|
it "should not re-run dependencies of the plugin providing the desired attributes" do
|
632
|
-
ohai.data[:depended_attr_count].
|
632
|
+
expect(ohai.data[:depended_attr_count]).to eq(1)
|
633
633
|
ohai.refresh_plugins("desired_attr")
|
634
|
-
ohai.data[:depended_attr_count].
|
634
|
+
expect(ohai.data[:depended_attr_count]).to eq(1)
|
635
635
|
end
|
636
636
|
|
637
637
|
it "should not re-run plugins unrelated to the plugin providing the desired attributes" do
|
638
|
-
ohai.data[:other_attr_count].
|
638
|
+
expect(ohai.data[:other_attr_count]).to eq(1)
|
639
639
|
ohai.refresh_plugins("desired_attr")
|
640
|
-
ohai.data[:other_attr_count].
|
640
|
+
expect(ohai.data[:other_attr_count]).to eq(1)
|
641
641
|
end
|
642
642
|
|
643
643
|
end
|
@@ -692,20 +692,20 @@ EOF
|
|
692
692
|
|
693
693
|
it "should run all the plugins when a top level attribute is specified" do
|
694
694
|
ohai.all_plugins("languages")
|
695
|
-
ohai.data[:languages][:english][:version].
|
696
|
-
ohai.data[:languages][:french][:version].
|
695
|
+
expect(ohai.data[:languages][:english][:version]).to eq(2014)
|
696
|
+
expect(ohai.data[:languages][:french][:version]).to eq(2012)
|
697
697
|
end
|
698
698
|
|
699
699
|
it "should run the first parent when a non-existent child is specified" do
|
700
700
|
ohai.all_plugins("languages/english/version")
|
701
|
-
ohai.data[:languages][:english][:version].
|
702
|
-
ohai.data[:languages][:french].
|
701
|
+
expect(ohai.data[:languages][:english][:version]).to eq(2014)
|
702
|
+
expect(ohai.data[:languages][:french]).to be_nil
|
703
703
|
end
|
704
704
|
|
705
705
|
it "should be able to run multiple plugins" do
|
706
706
|
ohai.all_plugins(["languages/english", "languages/french"])
|
707
|
-
ohai.data[:languages][:english][:version].
|
708
|
-
ohai.data[:languages][:french][:version].
|
707
|
+
expect(ohai.data[:languages][:english][:version]).to eq(2014)
|
708
|
+
expect(ohai.data[:languages][:french][:version]).to eq(2012)
|
709
709
|
end
|
710
710
|
|
711
711
|
end
|
@@ -28,12 +28,12 @@ describe "Ohai::Util::FileHelper" do
|
|
28
28
|
let(:file_helper) { FileHelperMock.new }
|
29
29
|
|
30
30
|
before(:each) do
|
31
|
-
File.
|
31
|
+
allow(File).to receive(:executable?).and_return(false)
|
32
32
|
end
|
33
33
|
|
34
34
|
describe "which" do
|
35
35
|
it "returns the path to an executable that is in the path" do
|
36
|
-
File.
|
36
|
+
allow(File).to receive(:executable?).with('/usr/bin/skyhawk').and_return(true)
|
37
37
|
|
38
38
|
expect(file_helper.which('skyhawk')).to eql "/usr/bin/skyhawk"
|
39
39
|
end
|
metadata
CHANGED
@@ -1,292 +1,251 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ohai
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
5
|
-
prerelease: 6
|
4
|
+
version: 8.0.1
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Adam Jacob
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date: 2014-
|
11
|
+
date: 2014-12-04 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: mime-types
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
16
|
requirements:
|
19
|
-
- - ~>
|
17
|
+
- - "~>"
|
20
18
|
- !ruby/object:Gem::Version
|
21
19
|
version: '1.16'
|
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: '1.16'
|
30
27
|
- !ruby/object:Gem::Dependency
|
31
28
|
name: systemu
|
32
29
|
requirement: !ruby/object:Gem::Requirement
|
33
|
-
none: false
|
34
30
|
requirements:
|
35
|
-
- - ~>
|
31
|
+
- - "~>"
|
36
32
|
- !ruby/object:Gem::Version
|
37
33
|
version: 2.6.4
|
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: 2.6.4
|
46
41
|
- !ruby/object:Gem::Dependency
|
47
42
|
name: ffi-yajl
|
48
43
|
requirement: !ruby/object:Gem::Requirement
|
49
|
-
none: false
|
50
44
|
requirements:
|
51
|
-
- - ~>
|
45
|
+
- - "~>"
|
52
46
|
- !ruby/object:Gem::Version
|
53
47
|
version: '1.1'
|
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: '1.1'
|
62
55
|
- !ruby/object:Gem::Dependency
|
63
56
|
name: mixlib-cli
|
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-config
|
80
71
|
requirement: !ruby/object:Gem::Requirement
|
81
|
-
none: false
|
82
72
|
requirements:
|
83
|
-
- - ~>
|
73
|
+
- - "~>"
|
84
74
|
- !ruby/object:Gem::Version
|
85
75
|
version: '2.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: '2.0'
|
94
83
|
- !ruby/object:Gem::Dependency
|
95
84
|
name: mixlib-log
|
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: mixlib-shellout
|
112
99
|
requirement: !ruby/object:Gem::Requirement
|
113
|
-
none: false
|
114
100
|
requirements:
|
115
|
-
- -
|
101
|
+
- - "~>"
|
116
102
|
- !ruby/object:Gem::Version
|
117
|
-
version: 2.0
|
118
|
-
- - <
|
119
|
-
- !ruby/object:Gem::Version
|
120
|
-
version: '3.0'
|
103
|
+
version: '2.0'
|
121
104
|
type: :runtime
|
122
105
|
prerelease: false
|
123
106
|
version_requirements: !ruby/object:Gem::Requirement
|
124
|
-
none: false
|
125
107
|
requirements:
|
126
|
-
- -
|
108
|
+
- - "~>"
|
127
109
|
- !ruby/object:Gem::Version
|
128
|
-
version: 2.0
|
129
|
-
- - <
|
130
|
-
- !ruby/object:Gem::Version
|
131
|
-
version: '3.0'
|
110
|
+
version: '2.0'
|
132
111
|
- !ruby/object:Gem::Dependency
|
133
112
|
name: net-dhcp
|
134
113
|
requirement: !ruby/object:Gem::Requirement
|
135
|
-
none: false
|
136
114
|
requirements:
|
137
|
-
- -
|
115
|
+
- - ">="
|
138
116
|
- !ruby/object:Gem::Version
|
139
117
|
version: '0'
|
140
118
|
type: :runtime
|
141
119
|
prerelease: false
|
142
120
|
version_requirements: !ruby/object:Gem::Requirement
|
143
|
-
none: false
|
144
121
|
requirements:
|
145
|
-
- -
|
122
|
+
- - ">="
|
146
123
|
- !ruby/object:Gem::Version
|
147
124
|
version: '0'
|
148
125
|
- !ruby/object:Gem::Dependency
|
149
126
|
name: ipaddress
|
150
127
|
requirement: !ruby/object:Gem::Requirement
|
151
|
-
none: false
|
152
128
|
requirements:
|
153
|
-
- -
|
129
|
+
- - ">="
|
154
130
|
- !ruby/object:Gem::Version
|
155
131
|
version: '0'
|
156
132
|
type: :runtime
|
157
133
|
prerelease: false
|
158
134
|
version_requirements: !ruby/object:Gem::Requirement
|
159
|
-
none: false
|
160
135
|
requirements:
|
161
|
-
- -
|
136
|
+
- - ">="
|
162
137
|
- !ruby/object:Gem::Version
|
163
138
|
version: '0'
|
164
139
|
- !ruby/object:Gem::Dependency
|
165
140
|
name: wmi-lite
|
166
141
|
requirement: !ruby/object:Gem::Requirement
|
167
|
-
none: false
|
168
142
|
requirements:
|
169
|
-
- - ~>
|
143
|
+
- - "~>"
|
170
144
|
- !ruby/object:Gem::Version
|
171
145
|
version: '1.0'
|
172
146
|
type: :runtime
|
173
147
|
prerelease: false
|
174
148
|
version_requirements: !ruby/object:Gem::Requirement
|
175
|
-
none: false
|
176
149
|
requirements:
|
177
|
-
- - ~>
|
150
|
+
- - "~>"
|
178
151
|
- !ruby/object:Gem::Version
|
179
152
|
version: '1.0'
|
180
153
|
- !ruby/object:Gem::Dependency
|
181
154
|
name: ffi
|
182
155
|
requirement: !ruby/object:Gem::Requirement
|
183
|
-
none: false
|
184
156
|
requirements:
|
185
|
-
- - ~>
|
157
|
+
- - "~>"
|
186
158
|
- !ruby/object:Gem::Version
|
187
159
|
version: '1.9'
|
188
160
|
type: :runtime
|
189
161
|
prerelease: false
|
190
162
|
version_requirements: !ruby/object:Gem::Requirement
|
191
|
-
none: false
|
192
163
|
requirements:
|
193
|
-
- - ~>
|
164
|
+
- - "~>"
|
194
165
|
- !ruby/object:Gem::Version
|
195
166
|
version: '1.9'
|
196
167
|
- !ruby/object:Gem::Dependency
|
197
168
|
name: rake
|
198
169
|
requirement: !ruby/object:Gem::Requirement
|
199
|
-
none: false
|
200
170
|
requirements:
|
201
|
-
- - ~>
|
171
|
+
- - "~>"
|
202
172
|
- !ruby/object:Gem::Version
|
203
173
|
version: '10.1'
|
204
174
|
type: :runtime
|
205
175
|
prerelease: false
|
206
176
|
version_requirements: !ruby/object:Gem::Requirement
|
207
|
-
none: false
|
208
177
|
requirements:
|
209
|
-
- - ~>
|
178
|
+
- - "~>"
|
210
179
|
- !ruby/object:Gem::Version
|
211
180
|
version: '10.1'
|
212
181
|
- !ruby/object:Gem::Dependency
|
213
182
|
name: rspec-core
|
214
183
|
requirement: !ruby/object:Gem::Requirement
|
215
|
-
none: false
|
216
184
|
requirements:
|
217
|
-
- - ~>
|
185
|
+
- - "~>"
|
218
186
|
- !ruby/object:Gem::Version
|
219
187
|
version: '3.0'
|
220
188
|
type: :development
|
221
189
|
prerelease: false
|
222
190
|
version_requirements: !ruby/object:Gem::Requirement
|
223
|
-
none: false
|
224
191
|
requirements:
|
225
|
-
- - ~>
|
192
|
+
- - "~>"
|
226
193
|
- !ruby/object:Gem::Version
|
227
194
|
version: '3.0'
|
228
195
|
- !ruby/object:Gem::Dependency
|
229
196
|
name: rspec-expectations
|
230
197
|
requirement: !ruby/object:Gem::Requirement
|
231
|
-
none: false
|
232
198
|
requirements:
|
233
|
-
- - ~>
|
199
|
+
- - "~>"
|
234
200
|
- !ruby/object:Gem::Version
|
235
201
|
version: '3.0'
|
236
202
|
type: :development
|
237
203
|
prerelease: false
|
238
204
|
version_requirements: !ruby/object:Gem::Requirement
|
239
|
-
none: false
|
240
205
|
requirements:
|
241
|
-
- - ~>
|
206
|
+
- - "~>"
|
242
207
|
- !ruby/object:Gem::Version
|
243
208
|
version: '3.0'
|
244
209
|
- !ruby/object:Gem::Dependency
|
245
210
|
name: rspec-mocks
|
246
211
|
requirement: !ruby/object:Gem::Requirement
|
247
|
-
none: false
|
248
212
|
requirements:
|
249
|
-
- - ~>
|
213
|
+
- - "~>"
|
250
214
|
- !ruby/object:Gem::Version
|
251
215
|
version: '3.0'
|
252
216
|
type: :development
|
253
217
|
prerelease: false
|
254
218
|
version_requirements: !ruby/object:Gem::Requirement
|
255
|
-
none: false
|
256
219
|
requirements:
|
257
|
-
- - ~>
|
220
|
+
- - "~>"
|
258
221
|
- !ruby/object:Gem::Version
|
259
222
|
version: '3.0'
|
260
223
|
- !ruby/object:Gem::Dependency
|
261
224
|
name: rspec-collection_matchers
|
262
225
|
requirement: !ruby/object:Gem::Requirement
|
263
|
-
none: false
|
264
226
|
requirements:
|
265
|
-
- - ~>
|
227
|
+
- - "~>"
|
266
228
|
- !ruby/object:Gem::Version
|
267
229
|
version: '1.0'
|
268
230
|
type: :development
|
269
231
|
prerelease: false
|
270
232
|
version_requirements: !ruby/object:Gem::Requirement
|
271
|
-
none: false
|
272
233
|
requirements:
|
273
|
-
- - ~>
|
234
|
+
- - "~>"
|
274
235
|
- !ruby/object:Gem::Version
|
275
236
|
version: '1.0'
|
276
237
|
- !ruby/object:Gem::Dependency
|
277
238
|
name: chef
|
278
239
|
requirement: !ruby/object:Gem::Requirement
|
279
|
-
none: false
|
280
240
|
requirements:
|
281
|
-
- -
|
241
|
+
- - ">="
|
282
242
|
- !ruby/object:Gem::Version
|
283
243
|
version: '0'
|
284
244
|
type: :development
|
285
245
|
prerelease: false
|
286
246
|
version_requirements: !ruby/object:Gem::Requirement
|
287
|
-
none: false
|
288
247
|
requirements:
|
289
|
-
- -
|
248
|
+
- - ">="
|
290
249
|
- !ruby/object:Gem::Version
|
291
250
|
version: '0'
|
292
251
|
description: Ohai profiles your system and emits JSON
|
@@ -299,14 +258,16 @@ files:
|
|
299
258
|
- LICENSE
|
300
259
|
- README.md
|
301
260
|
- Rakefile
|
261
|
+
- bin/ohai
|
302
262
|
- docs/man/man1/ohai.1
|
263
|
+
- lib/ohai.rb
|
303
264
|
- lib/ohai/application.rb
|
304
265
|
- lib/ohai/common/dmi.rb
|
305
266
|
- lib/ohai/config.rb
|
267
|
+
- lib/ohai/dsl.rb
|
268
|
+
- lib/ohai/dsl/plugin.rb
|
306
269
|
- lib/ohai/dsl/plugin/versionvi.rb
|
307
270
|
- lib/ohai/dsl/plugin/versionvii.rb
|
308
|
-
- lib/ohai/dsl/plugin.rb
|
309
|
-
- lib/ohai/dsl.rb
|
310
271
|
- lib/ohai/exception.rb
|
311
272
|
- lib/ohai/hints.rb
|
312
273
|
- lib/ohai/loader.rb
|
@@ -430,10 +391,9 @@ files:
|
|
430
391
|
- lib/ohai/runner.rb
|
431
392
|
- lib/ohai/system.rb
|
432
393
|
- lib/ohai/util/file_helper.rb
|
433
|
-
- lib/ohai/util/win32/group_helper.rb
|
434
394
|
- lib/ohai/util/win32.rb
|
395
|
+
- lib/ohai/util/win32/group_helper.rb
|
435
396
|
- lib/ohai/version.rb
|
436
|
-
- lib/ohai.rb
|
437
397
|
- spec/data/plugins/___lib64___libc.so.6.output
|
438
398
|
- spec/data/plugins/___lib___libc.so.6.output
|
439
399
|
- spec/data/plugins/cc.output
|
@@ -559,33 +519,28 @@ files:
|
|
559
519
|
- spec/unit/runner_spec.rb
|
560
520
|
- spec/unit/system_spec.rb
|
561
521
|
- spec/unit/util/file_helper_spec.rb
|
562
|
-
- bin/ohai
|
563
522
|
homepage: https://docs.getchef.com/ohai.html
|
564
523
|
licenses:
|
565
524
|
- Apache-2.0
|
525
|
+
metadata: {}
|
566
526
|
post_install_message:
|
567
527
|
rdoc_options: []
|
568
528
|
require_paths:
|
569
529
|
- lib
|
570
530
|
required_ruby_version: !ruby/object:Gem::Requirement
|
571
|
-
none: false
|
572
531
|
requirements:
|
573
|
-
- -
|
532
|
+
- - ">="
|
574
533
|
- !ruby/object:Gem::Version
|
575
|
-
version:
|
576
|
-
segments:
|
577
|
-
- 0
|
578
|
-
hash: -2436261048797910816
|
534
|
+
version: 2.0.0
|
579
535
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
580
|
-
none: false
|
581
536
|
requirements:
|
582
|
-
- -
|
537
|
+
- - ">="
|
583
538
|
- !ruby/object:Gem::Version
|
584
|
-
version:
|
539
|
+
version: '0'
|
585
540
|
requirements: []
|
586
541
|
rubyforge_project:
|
587
|
-
rubygems_version:
|
542
|
+
rubygems_version: 2.4.3
|
588
543
|
signing_key:
|
589
|
-
specification_version:
|
544
|
+
specification_version: 4
|
590
545
|
summary: Ohai profiles your system and emits JSON
|
591
546
|
test_files: []
|