ohai 7.2.0.alpha.0 → 7.2.0.rc.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/ohai/dsl/plugin.rb +5 -3
- data/lib/ohai/hints.rb +4 -2
- data/lib/ohai/mixin/ec2_metadata.rb +60 -36
- data/lib/ohai/mixin/gce_metadata.rb +5 -5
- data/lib/ohai/plugins/darwin/memory.rb +63 -0
- data/lib/ohai/plugins/joyent.rb +82 -0
- data/lib/ohai/plugins/linux/filesystem.rb +17 -0
- data/lib/ohai/plugins/network.rb +1 -1
- data/lib/ohai/plugins/rackspace.rb +8 -5
- data/lib/ohai/plugins/root_group.rb +4 -4
- data/lib/ohai/plugins/solaris2/virtualization.rb +7 -0
- data/lib/ohai/system.rb +3 -3
- data/lib/ohai/util/win32.rb +46 -0
- data/lib/ohai/util/win32/group_helper.rb +76 -0
- data/lib/ohai/version.rb +1 -1
- data/spec/functional/plugins/root_group_spec.rb +41 -0
- data/spec/spec_helper.rb +13 -1
- data/spec/unit/dsl/plugin_spec.rb +3 -3
- data/spec/unit/plugins/darwin/memory_spec.rb +64 -0
- data/spec/unit/plugins/ec2_spec.rb +22 -1
- data/spec/unit/plugins/gce_spec.rb +1 -1
- data/spec/unit/plugins/joyent_spec.rb +74 -0
- data/spec/unit/plugins/linux/filesystem_spec.rb +29 -2
- data/spec/unit/plugins/network_spec.rb +48 -31
- data/spec/unit/plugins/root_group_spec.rb +8 -8
- data/spec/unit/runner_spec.rb +7 -7
- data/spec/unit/system_spec.rb +5 -5
- data/spec/unit/util/file_helper_spec.rb +1 -1
- metadata +52 -17
@@ -24,6 +24,7 @@ describe Ohai::System, "Linux filesystem plugin" do
|
|
24
24
|
@plugin.stub(:collect_os).and_return(:linux)
|
25
25
|
|
26
26
|
@plugin.stub(:shell_out).with("df -P").and_return(mock_shell_out(0, "", ""))
|
27
|
+
@plugin.stub(:shell_out).with("df -i").and_return(mock_shell_out(0, "", ""))
|
27
28
|
@plugin.stub(:shell_out).with("mount").and_return(mock_shell_out(0, "", ""))
|
28
29
|
@plugin.stub(:shell_out).with("blkid -s TYPE").and_return(mock_shell_out(0, "", ""))
|
29
30
|
@plugin.stub(:shell_out).with("blkid -s UUID").and_return(mock_shell_out(0, "", ""))
|
@@ -48,10 +49,21 @@ tmpfs 2030944 2960 2027984 1% /dev/shm
|
|
48
49
|
/dev/md0 960492 36388 875312 4% /boot
|
49
50
|
DF
|
50
51
|
@plugin.stub(:shell_out).with("df -P").and_return(mock_shell_out(0, @stdout, ""))
|
52
|
+
|
53
|
+
@inode_stdout = <<-DFi
|
54
|
+
Filesystem Inodes IUsed IFree IUse% Mounted on
|
55
|
+
/dev/xvda1 1310720 107407 1203313 9% /
|
56
|
+
/dev/mapper/sys.vg-special.lv 124865 380 124485 1% /special
|
57
|
+
tmpfs 126922 273 126649 1% /run
|
58
|
+
none 126922 1 126921 1% /run/lock
|
59
|
+
none 126922 1 126921 1% /run/shm
|
60
|
+
DFi
|
61
|
+
@plugin.stub(:shell_out).with("df -i").and_return(mock_shell_out(0, @inode_stdout, ""))
|
51
62
|
end
|
52
63
|
|
53
|
-
it "should run df -P" do
|
54
|
-
@plugin.should_receive(:shell_out).with("df -P").and_return(mock_shell_out(0, @stdout, ""))
|
64
|
+
it "should run df -P and df -i" do
|
65
|
+
@plugin.should_receive(:shell_out).ordered.with("df -P").and_return(mock_shell_out(0, @stdout, ""))
|
66
|
+
@plugin.should_receive(:shell_out).ordered.with("df -i").and_return(mock_shell_out(0, @inode_stdout, ""))
|
55
67
|
@plugin.run
|
56
68
|
end
|
57
69
|
|
@@ -79,6 +91,21 @@ DF
|
|
79
91
|
@plugin.run
|
80
92
|
@plugin[:filesystem]["/dev/mapper/sys.vg-special.lv"][:mount].should be == "/special"
|
81
93
|
end
|
94
|
+
|
95
|
+
it "should set total_inodes to value from df -i" do
|
96
|
+
@plugin.run
|
97
|
+
@plugin[:filesystem]["/dev/mapper/sys.vg-special.lv"][:total_inodes].should be == "124865"
|
98
|
+
end
|
99
|
+
|
100
|
+
it "should set inodes_used to value from df -i" do
|
101
|
+
@plugin.run
|
102
|
+
@plugin[:filesystem]["/dev/mapper/sys.vg-special.lv"][:inodes_used].should be == "380"
|
103
|
+
end
|
104
|
+
|
105
|
+
it "should set inodes_available to value from df -i" do
|
106
|
+
@plugin.run
|
107
|
+
@plugin[:filesystem]["/dev/mapper/sys.vg-special.lv"][:inodes_available].should be == "124485"
|
108
|
+
end
|
82
109
|
end
|
83
110
|
|
84
111
|
describe "when gathering mounted filesystem data from mount" do
|
@@ -18,15 +18,32 @@
|
|
18
18
|
|
19
19
|
require File.expand_path(File.dirname(__FILE__) + '/../../spec_helper.rb')
|
20
20
|
|
21
|
-
def
|
22
|
-
it "
|
21
|
+
def it_doesnt_fail
|
22
|
+
it "doesnt fail" do
|
23
23
|
Ohai::Log.stub(:warn)
|
24
24
|
Ohai::Log.should_not_receive(:debug).with(/^Plugin network threw exception/)
|
25
25
|
@plugin.run
|
26
|
-
|
27
|
-
|
26
|
+
end
|
27
|
+
end
|
28
|
+
|
29
|
+
def it_populates_ipaddress_attributes
|
30
|
+
|
31
|
+
source = caller[0]
|
32
|
+
|
33
|
+
it "populates ipaddress, macaddress and ip6address" do
|
34
|
+
begin
|
35
|
+
Ohai::Log.stub(:warn)
|
36
|
+
Ohai::Log.should_not_receive(:debug).with(/^Plugin network threw exception/)
|
37
|
+
@plugin.run
|
38
|
+
%w{ ipaddress macaddress ip6address }.each do |attribute|
|
39
|
+
@plugin.should have_key(attribute)
|
40
|
+
end
|
41
|
+
rescue Exception
|
42
|
+
puts "RSpec context: #{source}"
|
43
|
+
raise
|
28
44
|
end
|
29
45
|
end
|
46
|
+
|
30
47
|
end
|
31
48
|
|
32
49
|
describe Ohai::System, "Network Plugin" do
|
@@ -292,7 +309,7 @@ describe Ohai::System, "Network Plugin" do
|
|
292
309
|
|
293
310
|
describe "when the linux::network plugin hasn't set any of {ip,ip6,mac}address attributes" do
|
294
311
|
describe "simple setup" do
|
295
|
-
|
312
|
+
it_populates_ipaddress_attributes
|
296
313
|
|
297
314
|
it "detects {ip,ip6,mac}address" do
|
298
315
|
@plugin.run
|
@@ -309,7 +326,7 @@ describe Ohai::System, "Network Plugin" do
|
|
309
326
|
@plugin["network"]["default_inet6_interface"] = "eth1"
|
310
327
|
end
|
311
328
|
|
312
|
-
|
329
|
+
it_populates_ipaddress_attributes
|
313
330
|
|
314
331
|
it "detects {ip,ip6}address" do
|
315
332
|
@plugin.run
|
@@ -338,7 +355,7 @@ describe Ohai::System, "Network Plugin" do
|
|
338
355
|
@plugin["network"]["default_inet6_interface"] = "eth1"
|
339
356
|
end
|
340
357
|
|
341
|
-
|
358
|
+
it_populates_ipaddress_attributes
|
342
359
|
|
343
360
|
it "detects {ip,ip6}address" do
|
344
361
|
@plugin.run
|
@@ -367,7 +384,7 @@ describe Ohai::System, "Network Plugin" do
|
|
367
384
|
@plugin["network"]["default_inet6_interface"] = "eth1"
|
368
385
|
end
|
369
386
|
|
370
|
-
|
387
|
+
it_populates_ipaddress_attributes
|
371
388
|
|
372
389
|
it "picks {ip,ip6,mac}address" do
|
373
390
|
Ohai::Log.stub(:warn)
|
@@ -376,10 +393,10 @@ describe Ohai::System, "Network Plugin" do
|
|
376
393
|
@plugin["macaddress"].should == "00:16:3E:2F:36:80"
|
377
394
|
@plugin["ip6address"].should == "3ffe:1111:3333::1"
|
378
395
|
end
|
379
|
-
|
396
|
+
|
380
397
|
it "warns about this conflict" do
|
381
|
-
Ohai::Log.should_receive(:
|
382
|
-
Ohai::Log.should_receive(:
|
398
|
+
Ohai::Log.should_receive(:debug).with(/^\[inet\] no ipaddress\/mask on eth1/).once
|
399
|
+
Ohai::Log.should_receive(:debug).with(/^\[inet6\] no ipaddress\/mask on eth1/).once
|
383
400
|
@plugin.run
|
384
401
|
end
|
385
402
|
end
|
@@ -405,7 +422,7 @@ describe Ohai::System, "Network Plugin" do
|
|
405
422
|
@plugin["network"]["interfaces"]["eth0"]["addresses"].delete_if{|k,v| %w[inet inet6].include? v["family"]}
|
406
423
|
end
|
407
424
|
|
408
|
-
|
425
|
+
it_doesnt_fail
|
409
426
|
|
410
427
|
it "doesn't detect {ip,ip6,mac}address" do
|
411
428
|
Ohai::Log.stub(:warn)
|
@@ -436,7 +453,7 @@ describe Ohai::System, "Network Plugin" do
|
|
436
453
|
end
|
437
454
|
end
|
438
455
|
|
439
|
-
|
456
|
+
it_doesnt_fail
|
440
457
|
|
441
458
|
it "doesn't detect {ip,ip6,mac}address" do
|
442
459
|
Ohai::Log.stub(:warn)
|
@@ -484,7 +501,7 @@ describe Ohai::System, "Network Plugin" do
|
|
484
501
|
}
|
485
502
|
end
|
486
503
|
|
487
|
-
|
504
|
+
it_populates_ipaddress_attributes
|
488
505
|
|
489
506
|
it "sets {ip,ip6,mac}address correctly" do
|
490
507
|
@plugin.run
|
@@ -510,7 +527,7 @@ describe Ohai::System, "Network Plugin" do
|
|
510
527
|
}
|
511
528
|
end
|
512
529
|
|
513
|
-
|
530
|
+
it_populates_ipaddress_attributes
|
514
531
|
|
515
532
|
it "sets {ip,ip6,mac}address correctly" do
|
516
533
|
@plugin.run
|
@@ -548,7 +565,7 @@ describe Ohai::System, "Network Plugin" do
|
|
548
565
|
}
|
549
566
|
end
|
550
567
|
|
551
|
-
|
568
|
+
it_populates_ipaddress_attributes
|
552
569
|
|
553
570
|
it "sets {ip,ip6,mac}address correctly" do
|
554
571
|
@plugin.run
|
@@ -574,7 +591,7 @@ describe Ohai::System, "Network Plugin" do
|
|
574
591
|
}
|
575
592
|
end
|
576
593
|
|
577
|
-
|
594
|
+
it_populates_ipaddress_attributes
|
578
595
|
|
579
596
|
it "sets {ip,ip6,mac}address correctly" do
|
580
597
|
@plugin.run
|
@@ -596,7 +613,7 @@ describe Ohai::System, "Network Plugin" do
|
|
596
613
|
@plugin["network"]["interfaces"]["eth0"]["addresses"].delete_if{|k,v| %w[inet inet6].include? v["family"]}
|
597
614
|
end
|
598
615
|
|
599
|
-
|
616
|
+
it_populates_ipaddress_attributes
|
600
617
|
|
601
618
|
it "picks {ip,mac,ip6}address from the first interface" do
|
602
619
|
Ohai::Log.should_receive(:debug).with(/^\[inet\] no default interface/).once
|
@@ -619,7 +636,7 @@ describe Ohai::System, "Network Plugin" do
|
|
619
636
|
@plugin["network"]["interfaces"]["eth0"]["addresses"].each{|k,v| v[:scope]="lInK" if %w[inet inet6].include? v["family"]}
|
620
637
|
end
|
621
638
|
|
622
|
-
|
639
|
+
it_populates_ipaddress_attributes
|
623
640
|
|
624
641
|
it "prefers global scope addressses to set {ip,mac,ip6}address" do
|
625
642
|
Ohai::Log.should_receive(:debug).with(/^\[inet\] no default interface/).once
|
@@ -642,7 +659,7 @@ describe Ohai::System, "Network Plugin" do
|
|
642
659
|
@plugin["network"]["default_inet6_interface"] = "eth1"
|
643
660
|
end
|
644
661
|
|
645
|
-
|
662
|
+
it_populates_ipaddress_attributes
|
646
663
|
|
647
664
|
it "picks {ip,mac,ip6}address from the default interface" do
|
648
665
|
@plugin.run
|
@@ -657,7 +674,7 @@ describe Ohai::System, "Network Plugin" do
|
|
657
674
|
@plugin["network"]["default_inet6_gateway"] = "fe80::1"
|
658
675
|
end
|
659
676
|
|
660
|
-
|
677
|
+
it_populates_ipaddress_attributes
|
661
678
|
|
662
679
|
it "picks {ip,mac,ip6}address from the default interface" do
|
663
680
|
@plugin.run
|
@@ -679,7 +696,7 @@ describe Ohai::System, "Network Plugin" do
|
|
679
696
|
}
|
680
697
|
end
|
681
698
|
|
682
|
-
|
699
|
+
it_populates_ipaddress_attributes
|
683
700
|
|
684
701
|
it "picks {ip,mac,ip6}address from the default interface" do
|
685
702
|
@plugin.run
|
@@ -723,7 +740,7 @@ describe Ohai::System, "Network Plugin" do
|
|
723
740
|
@plugin["network"]["default_inet6_interface"] = "eth2"
|
724
741
|
end
|
725
742
|
|
726
|
-
|
743
|
+
it_populates_ipaddress_attributes
|
727
744
|
|
728
745
|
it "picks {ip,mac,ip6}address from the default interface" do
|
729
746
|
@plugin.run
|
@@ -742,7 +759,7 @@ describe Ohai::System, "Network Plugin" do
|
|
742
759
|
end
|
743
760
|
end
|
744
761
|
|
745
|
-
|
762
|
+
it_doesnt_fail
|
746
763
|
|
747
764
|
it "can't detect ipaddress" do
|
748
765
|
Ohai::Log.stub(:warn)
|
@@ -795,7 +812,7 @@ describe Ohai::System, "Network Plugin" do
|
|
795
812
|
}
|
796
813
|
end
|
797
814
|
|
798
|
-
|
815
|
+
it_populates_ipaddress_attributes
|
799
816
|
|
800
817
|
it "detects ip6address" do
|
801
818
|
@plugin.run
|
@@ -829,7 +846,7 @@ describe Ohai::System, "Network Plugin" do
|
|
829
846
|
}
|
830
847
|
end
|
831
848
|
|
832
|
-
|
849
|
+
it_populates_ipaddress_attributes
|
833
850
|
|
834
851
|
it "detects {ip,mac}address" do
|
835
852
|
@plugin.run
|
@@ -855,7 +872,7 @@ describe Ohai::System, "Network Plugin" do
|
|
855
872
|
@plugin["ip6address"] = "3ffe:8888:9999::1"
|
856
873
|
end
|
857
874
|
|
858
|
-
|
875
|
+
it_doesnt_fail
|
859
876
|
|
860
877
|
it "can't detect ipaddress (ipv4)" do
|
861
878
|
Ohai::Log.stub(:warn)
|
@@ -904,7 +921,7 @@ describe Ohai::System, "Network Plugin" do
|
|
904
921
|
}
|
905
922
|
end
|
906
923
|
|
907
|
-
|
924
|
+
it_populates_ipaddress_attributes
|
908
925
|
|
909
926
|
it "detects ipaddress and overwrite macaddress" do
|
910
927
|
@plugin.run
|
@@ -931,7 +948,7 @@ describe Ohai::System, "Network Plugin" do
|
|
931
948
|
@plugin["ip6address"] = "3ffe:8888:9999::1"
|
932
949
|
end
|
933
950
|
|
934
|
-
|
951
|
+
it_doesnt_fail
|
935
952
|
|
936
953
|
it "can't set ipaddress" do
|
937
954
|
Ohai::Log.stub(:warn)
|
@@ -955,7 +972,7 @@ describe Ohai::System, "Network Plugin" do
|
|
955
972
|
@plugin["ip6address"] = "3ffe:8888:9999::1"
|
956
973
|
end
|
957
974
|
|
958
|
-
|
975
|
+
it_populates_ipaddress_attributes
|
959
976
|
|
960
977
|
it "doesn't overwrite {ip,mac,ip6}address" do
|
961
978
|
@plugin.run
|
@@ -971,7 +988,7 @@ describe Ohai::System, "Network Plugin" do
|
|
971
988
|
@plugin["ip6address"] = "3ffe:8888:9999::1"
|
972
989
|
end
|
973
990
|
|
974
|
-
|
991
|
+
it_doesnt_fail
|
975
992
|
|
976
993
|
it "doesn't overwrite {ip,mac,ip6}address" do
|
977
994
|
@plugin.run
|
@@ -17,6 +17,7 @@
|
|
17
17
|
#
|
18
18
|
|
19
19
|
require File.expand_path(File.dirname(__FILE__) + '/../../spec_helper.rb')
|
20
|
+
require File.expand_path(File.dirname(__FILE__) + '/../../../lib/ohai/util/win32/group_helper.rb')
|
20
21
|
|
21
22
|
describe Ohai::System, 'root_group' do
|
22
23
|
before(:each) do
|
@@ -76,13 +77,12 @@ describe Ohai::System, 'root_group' do
|
|
76
77
|
end
|
77
78
|
end
|
78
79
|
|
79
|
-
describe 'windows'
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
80
|
+
describe 'windows platform' do
|
81
|
+
it 'should return the group administrators' do
|
82
|
+
stub_const('::RbConfig::CONFIG', { 'host_os' => 'windows'} )
|
83
|
+
Ohai::Util::Win32::GroupHelper.should_receive(:windows_root_group_name).and_return('administrators')
|
84
|
+
@plugin.run
|
85
|
+
@plugin[:root_group].should == 'administrators'
|
86
|
+
end
|
87
87
|
end
|
88
88
|
end
|
data/spec/unit/runner_spec.rb
CHANGED
@@ -113,7 +113,7 @@ describe Ohai::Runner, "run_plugin" do
|
|
113
113
|
|
114
114
|
it "should run the plugin" do
|
115
115
|
@runner.run_plugin(plugin)
|
116
|
-
plugin.has_run?.should
|
116
|
+
plugin.has_run?.should be true
|
117
117
|
end
|
118
118
|
|
119
119
|
it "should add plugin data to Ohai::System.data" do
|
@@ -142,7 +142,7 @@ describe Ohai::Runner, "run_plugin" do
|
|
142
142
|
|
143
143
|
it "should not run the plugin" do
|
144
144
|
expect{ @runner.run_plugin(@plugin) }.to raise_error
|
145
|
-
@plugin.has_run?.should
|
145
|
+
@plugin.has_run?.should be false
|
146
146
|
end
|
147
147
|
end
|
148
148
|
|
@@ -174,7 +174,7 @@ describe Ohai::Runner, "run_plugin" do
|
|
174
174
|
it "should run the plugins" do
|
175
175
|
@runner.run_plugin(@plugin2)
|
176
176
|
@plugins.each do |plugin|
|
177
|
-
plugin.has_run?.should
|
177
|
+
plugin.has_run?.should be true
|
178
178
|
end
|
179
179
|
end
|
180
180
|
end
|
@@ -208,7 +208,7 @@ describe Ohai::Runner, "run_plugin" do
|
|
208
208
|
it "should run the plugins" do
|
209
209
|
@runner.run_plugin(@plugin3)
|
210
210
|
@plugins.each do |plugin|
|
211
|
-
plugin.has_run?.should
|
211
|
+
plugin.has_run?.should be true
|
212
212
|
end
|
213
213
|
end
|
214
214
|
end
|
@@ -251,7 +251,7 @@ describe Ohai::Runner, "run_plugin" do
|
|
251
251
|
it "should run the plugins" do
|
252
252
|
@runner.run_plugin(@plugin3)
|
253
253
|
@plugins.each do |plugin|
|
254
|
-
plugin.has_run?.should
|
254
|
+
plugin.has_run?.should be true
|
255
255
|
end
|
256
256
|
end
|
257
257
|
end
|
@@ -350,7 +350,7 @@ describe Ohai::Runner, "run_plugin" do
|
|
350
350
|
@runner.run_plugin(@pluginA)
|
351
351
|
|
352
352
|
@plugins.each do |plugin|
|
353
|
-
plugin.has_run?.should
|
353
|
+
plugin.has_run?.should be true
|
354
354
|
end
|
355
355
|
end
|
356
356
|
|
@@ -363,7 +363,7 @@ describe Ohai::Runner, "run_plugin" do
|
|
363
363
|
@runner.run_plugin(@pluginA)
|
364
364
|
|
365
365
|
@plugins.each do |plugin|
|
366
|
-
plugin.has_run?.should
|
366
|
+
plugin.has_run?.should be true
|
367
367
|
end
|
368
368
|
end
|
369
369
|
end
|
data/spec/unit/system_spec.rb
CHANGED
@@ -210,20 +210,20 @@ EOF
|
|
210
210
|
# least code complexity in legacy v6 plugin format support. Once we
|
211
211
|
# ship 7.0, though, we need to stick to the same behavior.
|
212
212
|
it "runs v6 plugins" do
|
213
|
-
expect(v6_plugin.has_run?).to
|
213
|
+
expect(v6_plugin.has_run?).to be true
|
214
214
|
end
|
215
215
|
|
216
216
|
it "runs plugins that provide the requested attributes" do
|
217
|
-
expect(primary_plugin.has_run?).to
|
217
|
+
expect(primary_plugin.has_run?).to be true
|
218
218
|
end
|
219
219
|
|
220
220
|
it "runs dependencies of plugins that provide requested attributes" do
|
221
|
-
expect(dependency_plugin_one.has_run?).to
|
222
|
-
expect(dependency_plugin_two.has_run?).to
|
221
|
+
expect(dependency_plugin_one.has_run?).to be true
|
222
|
+
expect(dependency_plugin_two.has_run?).to be true
|
223
223
|
end
|
224
224
|
|
225
225
|
it "does not run plugins that are irrelevant to the requested attributes" do
|
226
|
-
expect(unrelated_plugin.has_run?).to
|
226
|
+
expect(unrelated_plugin.has_run?).to be false
|
227
227
|
end
|
228
228
|
|
229
229
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ohai
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 7.2.0.
|
4
|
+
version: 7.2.0.rc.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Adam Jacob
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-06-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: mime-types
|
@@ -30,16 +30,16 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 2.
|
33
|
+
version: 2.6.4
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 2.
|
40
|
+
version: 2.6.4
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
|
-
name: yajl
|
42
|
+
name: ffi-yajl
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - ">="
|
@@ -136,6 +136,20 @@ dependencies:
|
|
136
136
|
- - "~>"
|
137
137
|
- !ruby/object:Gem::Version
|
138
138
|
version: '1.0'
|
139
|
+
- !ruby/object:Gem::Dependency
|
140
|
+
name: ffi
|
141
|
+
requirement: !ruby/object:Gem::Requirement
|
142
|
+
requirements:
|
143
|
+
- - '='
|
144
|
+
- !ruby/object:Gem::Version
|
145
|
+
version: 1.5.0
|
146
|
+
type: :runtime
|
147
|
+
prerelease: false
|
148
|
+
version_requirements: !ruby/object:Gem::Requirement
|
149
|
+
requirements:
|
150
|
+
- - '='
|
151
|
+
- !ruby/object:Gem::Version
|
152
|
+
version: 1.5.0
|
139
153
|
- !ruby/object:Gem::Dependency
|
140
154
|
name: rake
|
141
155
|
requirement: !ruby/object:Gem::Requirement
|
@@ -154,44 +168,58 @@ dependencies:
|
|
154
168
|
name: rspec-core
|
155
169
|
requirement: !ruby/object:Gem::Requirement
|
156
170
|
requirements:
|
157
|
-
- - "
|
171
|
+
- - "~>"
|
158
172
|
- !ruby/object:Gem::Version
|
159
|
-
version: '0'
|
173
|
+
version: '3.0'
|
160
174
|
type: :development
|
161
175
|
prerelease: false
|
162
176
|
version_requirements: !ruby/object:Gem::Requirement
|
163
177
|
requirements:
|
164
|
-
- - "
|
178
|
+
- - "~>"
|
165
179
|
- !ruby/object:Gem::Version
|
166
|
-
version: '0'
|
180
|
+
version: '3.0'
|
167
181
|
- !ruby/object:Gem::Dependency
|
168
182
|
name: rspec-expectations
|
169
183
|
requirement: !ruby/object:Gem::Requirement
|
170
184
|
requirements:
|
171
|
-
- - "
|
185
|
+
- - "~>"
|
172
186
|
- !ruby/object:Gem::Version
|
173
|
-
version: '0'
|
187
|
+
version: '3.0'
|
174
188
|
type: :development
|
175
189
|
prerelease: false
|
176
190
|
version_requirements: !ruby/object:Gem::Requirement
|
177
191
|
requirements:
|
178
|
-
- - "
|
192
|
+
- - "~>"
|
179
193
|
- !ruby/object:Gem::Version
|
180
|
-
version: '0'
|
194
|
+
version: '3.0'
|
181
195
|
- !ruby/object:Gem::Dependency
|
182
196
|
name: rspec-mocks
|
183
197
|
requirement: !ruby/object:Gem::Requirement
|
184
198
|
requirements:
|
185
|
-
- - "
|
199
|
+
- - "~>"
|
186
200
|
- !ruby/object:Gem::Version
|
187
|
-
version: '0'
|
201
|
+
version: '3.0'
|
188
202
|
type: :development
|
189
203
|
prerelease: false
|
190
204
|
version_requirements: !ruby/object:Gem::Requirement
|
191
205
|
requirements:
|
192
|
-
- - "
|
206
|
+
- - "~>"
|
193
207
|
- !ruby/object:Gem::Version
|
194
|
-
version: '0'
|
208
|
+
version: '3.0'
|
209
|
+
- !ruby/object:Gem::Dependency
|
210
|
+
name: rspec-collection_matchers
|
211
|
+
requirement: !ruby/object:Gem::Requirement
|
212
|
+
requirements:
|
213
|
+
- - "~>"
|
214
|
+
- !ruby/object:Gem::Version
|
215
|
+
version: '1.0'
|
216
|
+
type: :development
|
217
|
+
prerelease: false
|
218
|
+
version_requirements: !ruby/object:Gem::Requirement
|
219
|
+
requirements:
|
220
|
+
- - "~>"
|
221
|
+
- !ruby/object:Gem::Version
|
222
|
+
version: '1.0'
|
195
223
|
- !ruby/object:Gem::Dependency
|
196
224
|
name: rspec_junit_formatter
|
197
225
|
requirement: !ruby/object:Gem::Requirement
|
@@ -268,6 +296,7 @@ files:
|
|
268
296
|
- lib/ohai/plugins/command.rb
|
269
297
|
- lib/ohai/plugins/darwin/cpu.rb
|
270
298
|
- lib/ohai/plugins/darwin/filesystem.rb
|
299
|
+
- lib/ohai/plugins/darwin/memory.rb
|
271
300
|
- lib/ohai/plugins/darwin/network.rb
|
272
301
|
- lib/ohai/plugins/darwin/platform.rb
|
273
302
|
- lib/ohai/plugins/darwin/system_profiler.rb
|
@@ -288,6 +317,7 @@ files:
|
|
288
317
|
- lib/ohai/plugins/init_package.rb
|
289
318
|
- lib/ohai/plugins/ip_scopes.rb
|
290
319
|
- lib/ohai/plugins/java.rb
|
320
|
+
- lib/ohai/plugins/joyent.rb
|
291
321
|
- lib/ohai/plugins/kernel.rb
|
292
322
|
- lib/ohai/plugins/keys.rb
|
293
323
|
- lib/ohai/plugins/languages.rb
|
@@ -356,6 +386,8 @@ files:
|
|
356
386
|
- lib/ohai/runner.rb
|
357
387
|
- lib/ohai/system.rb
|
358
388
|
- lib/ohai/util/file_helper.rb
|
389
|
+
- lib/ohai/util/win32.rb
|
390
|
+
- lib/ohai/util/win32/group_helper.rb
|
359
391
|
- lib/ohai/version.rb
|
360
392
|
- spec/data/plugins/___lib64___libc.so.6.output
|
361
393
|
- spec/data/plugins/___lib___libc.so.6.output
|
@@ -378,6 +410,7 @@ files:
|
|
378
410
|
- spec/data/plugins/v7message.rb
|
379
411
|
- spec/data/plugins/what.output
|
380
412
|
- spec/data/plugins/xlc.output
|
413
|
+
- spec/functional/plugins/root_group_spec.rb
|
381
414
|
- spec/ohai_spec.rb
|
382
415
|
- spec/rcov.opts
|
383
416
|
- spec/spec.opts
|
@@ -404,6 +437,7 @@ files:
|
|
404
437
|
- spec/unit/plugins/darwin/cpu_spec.rb
|
405
438
|
- spec/unit/plugins/darwin/hostname_spec.rb
|
406
439
|
- spec/unit/plugins/darwin/kernel_spec.rb
|
440
|
+
- spec/unit/plugins/darwin/memory_spec.rb
|
407
441
|
- spec/unit/plugins/darwin/network_spec.rb
|
408
442
|
- spec/unit/plugins/darwin/platform_spec.rb
|
409
443
|
- spec/unit/plugins/darwin/system_profiler_output.rb
|
@@ -425,6 +459,7 @@ files:
|
|
425
459
|
- spec/unit/plugins/init_package_spec.rb
|
426
460
|
- spec/unit/plugins/ip_scopes_spec.rb
|
427
461
|
- spec/unit/plugins/java_spec.rb
|
462
|
+
- spec/unit/plugins/joyent_spec.rb
|
428
463
|
- spec/unit/plugins/kernel_spec.rb
|
429
464
|
- spec/unit/plugins/linode_spec.rb
|
430
465
|
- spec/unit/plugins/linux/cpu_spec.rb
|