ohai 6.16.0 → 6.18.0.rc.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -40,25 +40,31 @@ describe Ohai::System, "plugin rackspace" do
40
40
  "40:40:95:47:6E:ED"=> {
41
41
  "family"=> "lladdr"
42
42
  }
43
- }}
44
- }
45
- }
46
-
47
- @ohai[:network][:interfaces][:eth1] = {:addresses => {
48
- "fe80::4240:f5ff:feab:2836" => {
49
- "scope"=> "Link",
50
- "prefixlen"=> "64",
51
- "family"=> "inet6"
52
- },
53
- "5.6.7.8"=> {
54
- "broadcast"=> "10.176.191.255",
55
- "netmask"=> "255.255.224.0",
56
- "family"=> "inet"
57
- },
58
- "40:40:F5:AB:28:36" => {
59
- "family"=> "lladdr"
60
- }
43
+ }}}}
44
+
45
+ @ohai[:network][:interfaces][:eth1] = {:addresses => {
46
+ "fe80::4240:f5ff:feab:2836" => {
47
+ "scope"=> "Link",
48
+ "prefixlen"=> "64",
49
+ "family"=> "inet6"
50
+ },
51
+ "5.6.7.8"=> {
52
+ "broadcast"=> "10.176.191.255",
53
+ "netmask"=> "255.255.224.0",
54
+ "family"=> "inet"
55
+ },
56
+ "40:40:F5:AB:28:36" => {
57
+ "family"=> "lladdr"
58
+ }
61
59
  }}
60
+
61
+ # In olden days we could detect rackspace by a -rscloud suffix on the kernel
62
+ # This is here to make #has_rackspace_kernel? fail until we remove that check
63
+ @ohai[:kernel] = { :release => "1.2.13-not-rackspace" }
64
+
65
+ # We need a generic stub here for the later stubs with arguments to work
66
+ # Because, magic.
67
+ @ohai.stub(:run_command).and_return(false)
62
68
  end
63
69
 
64
70
  shared_examples_for "!rackspace" do
@@ -95,49 +101,19 @@ describe Ohai::System, "plugin rackspace" do
95
101
  end
96
102
 
97
103
  it "should capture region information" do
98
- @stderr = StringIO.new
99
- @stdout = <<-OUT
104
+ provider_data = <<-OUT
100
105
  provider = "Rackspace"
101
106
  service_type = "cloudServers"
102
107
  server_id = "21301000"
103
108
  created_at = "2012-12-06T22:08:16Z"
104
109
  region = "dfw"
105
110
  OUT
106
- @status = 0
107
- @ohai.stub(:run_command).with({:no_status_check=>true, :command=>"xenstore-ls vm-data/provider_data"}).and_return([ @status, @stdout, @stderr ])
111
+ @ohai.stub(:run_command).with({:no_status_check=>true, :command=>"xenstore-ls vm-data/provider_data"}).and_return([ 0, provider_data, ""])
108
112
  @ohai._require_plugin("rackspace")
109
113
  @ohai[:rackspace][:region].should == "dfw"
110
114
  end
111
115
  end
112
116
 
113
- describe "with rackspace mac and hostname" do
114
- it_should_behave_like "rackspace"
115
-
116
- before(:each) do
117
- IO.stub!(:select).and_return([[],[1],[]])
118
- @ohai[:hostname] = "slice74976"
119
- @ohai[:network][:interfaces][:eth0][:arp] = {"67.23.20.1" => "00:00:0c:07:ac:01"}
120
- end
121
- end
122
-
123
- describe "without rackspace mac" do
124
- it_should_behave_like "!rackspace"
125
-
126
- before(:each) do
127
- @ohai[:hostname] = "slice74976"
128
- @ohai[:network][:interfaces][:eth0][:arp] = {"169.254.1.0"=>"fe:ff:ff:ff:ff:ff"}
129
- end
130
- end
131
-
132
- describe "without rackspace hostname" do
133
- it_should_behave_like "rackspace"
134
-
135
- before(:each) do
136
- @ohai[:hostname] = "bubba"
137
- @ohai[:network][:interfaces][:eth0][:arp] = {"67.23.20.1" => "00:00:0c:07:ac:01"}
138
- end
139
- end
140
-
141
117
  describe "with rackspace cloud file" do
142
118
  it_should_behave_like "rackspace"
143
119
 
@@ -169,4 +145,25 @@ OUT
169
145
  end
170
146
  end
171
147
 
148
+ describe "xenstore provider returns rackspace" do
149
+ it_should_behave_like "rackspace"
150
+
151
+ before(:each) do
152
+ stderr = StringIO.new
153
+ stdout = "Rackspace\n"
154
+ status = 0
155
+ @ohai.stub!(:run_command).with({:no_status_check=>true, :command=>"xenstore-read vm-data/provider_data/provider"}).and_return([ status, stdout, stderr ])
156
+ end
157
+ end
158
+
159
+ describe "xenstore provider does not return rackspace" do
160
+ it_should_behave_like "!rackspace"
161
+
162
+ before(:each) do
163
+ stderr = StringIO.new
164
+ stdout = "cumulonimbus\n"
165
+ status = 0
166
+ @ohai.stub!(:run_command).with({:no_status_check=>true, :command=>"xenstore-read vm-data/provider_data/provider"}).and_return([ status, stdout, stderr ])
167
+ end
168
+ end
172
169
  end
@@ -0,0 +1,131 @@
1
+ #
2
+ # Author:: Joseph Anthony Pasquale Holsten (<joseph@josephholsten.com>)
3
+ # Copyright:: Copyright (c) 2013 Joseph Anthony Pasquale Holsten
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
+
19
+ require File.expand_path(File.dirname(__FILE__) + '/../../spec_helper.rb')
20
+
21
+ ORIGINAL_CONFIG_HOST_OS = ::RbConfig::CONFIG['host_os']
22
+
23
+ describe Ohai::System, 'root_group' do
24
+ before(:each) do
25
+ @ohai = Ohai::System.new
26
+ end
27
+
28
+ describe 'unix platform', :unix_only do
29
+ before(:each) do
30
+ # this is deeply intertwingled. unfortunately, the law of demeter
31
+ # apparently didn't apply to this api. we're just trying to fake
32
+ # Etc.getgrgid(Etc.getpwnam('root').gid).name
33
+ @pwnam = Object.new
34
+ @pwnam.stub!(:gid).and_return(0)
35
+ Etc.stub!(:getpwnam).with('root').and_return(@pwnam)
36
+ @grgid = Object.new
37
+ Etc.stub!(:getgrgid).and_return(@grgid)
38
+ end
39
+
40
+ describe 'with wheel group' do
41
+ before(:each) do
42
+ @grgid.stub!(:name).and_return('wheel')
43
+ end
44
+ it 'should have a root_group of wheel' do
45
+ @ohai._require_plugin('root_group')
46
+ @ohai[:root_group].should == 'wheel'
47
+ end
48
+ end
49
+
50
+ describe 'with root group' do
51
+ before(:each) do
52
+ @grgid.stub!(:name).and_return('root')
53
+ end
54
+ it 'should have a root_group of root' do
55
+ @ohai._require_plugin('root_group')
56
+ @ohai[:root_group].should == 'root'
57
+ end
58
+ end
59
+
60
+ describe 'platform hpux with sys group' do
61
+ before(:each) do
62
+ @pwnam.stub!(:gid).and_return(3)
63
+ @grgid.stub!(:name).and_return('sys')
64
+ end
65
+ it 'should have a root_group of sys' do
66
+ @ohai._require_plugin('root_group')
67
+ @ohai[:root_group].should == 'sys'
68
+ end
69
+ end
70
+ describe 'platform aix with system group' do
71
+ before(:each) do
72
+ @grgid.stub!(:name).and_return('system')
73
+ end
74
+ it 'should have a root_group of system' do
75
+ @ohai._require_plugin('root_group')
76
+ @ohai[:root_group].should == 'system'
77
+ end
78
+ end
79
+ end
80
+
81
+ describe 'windows', :windows_only do
82
+ before(:each) do
83
+ ::RbConfig::CONFIG['host_os'] = 'windows'
84
+
85
+ # fake out WMI::Win32_Group#find
86
+ unless defined?(WMI)
87
+ module WMI
88
+ unless defined?(WMI::Win32_Group)
89
+ class Win32_Group; end
90
+ end
91
+ end
92
+ end
93
+
94
+ @group = Object.new
95
+ WMI::Win32_Group.
96
+ stub!(:find).
97
+ with(:first, :conditions => {:SID => 'S-1-5-32-544'}).
98
+ and_return(@group)
99
+ end
100
+
101
+ after do
102
+ ::RbConfig::CONFIG['host_os'] = ORIGINAL_CONFIG_HOST_OS
103
+ end
104
+
105
+ describe 'with administrator group' do
106
+ before(:each) do
107
+ @group.
108
+ stub!(:[]).
109
+ with('Name').
110
+ and_return('Administrator')
111
+ end
112
+ it 'should have a root_group of system' do
113
+ @ohai._require_plugin('root_group')
114
+ @ohai[:root_group].should == 'Administrator'
115
+ end
116
+ end
117
+
118
+ describe 'with renamed administrator group' do
119
+ before(:each) do
120
+ @group.
121
+ stub!(:[]).
122
+ with('Name').
123
+ and_return('BOFH')
124
+ end
125
+ it 'should have a root_group of system' do
126
+ @ohai._require_plugin('root_group')
127
+ @ohai[:root_group].should == 'BOFH'
128
+ end
129
+ end
130
+ end
131
+ end
@@ -6,9 +6,9 @@
6
6
  # Licensed under the Apache License, Version 2.0 (the "License");
7
7
  # you may not use this file except in compliance with the License.
8
8
  # You may obtain a copy of the License at
9
- #
9
+ #
10
10
  # http://www.apache.org/licenses/LICENSE-2.0
11
- #
11
+ #
12
12
  # Unless required by applicable law or agreed to in writing, software
13
13
  # distributed under the License is distributed on an "AS IS" BASIS,
14
14
  # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -29,15 +29,11 @@ describe Ohai::System, "ssh_host_key plugin" do
29
29
  @ohai.extend(SimpleFromFile)
30
30
 
31
31
  File.stub(:exists?).with("/etc/ssh/sshd_config").and_return(true)
32
- sshd_config_file =<<EOS
33
- # HostKeys for protocol version 2
34
- HostKey /etc/ssh/ssh_host_rsa_key
35
- HostKey /etc/ssh/ssh_host_dsa_key
36
- EOS
37
32
  File.stub(:open).with("/etc/ssh/sshd_config").and_yield(sshd_config_file)
38
33
  File.stub(:exists?).and_return(true)
39
34
  File.stub(:exists?).with("/etc/ssh/ssh_host_dsa_key.pub").and_return(true)
40
35
  File.stub(:exists?).with("/etc/ssh/ssh_host_rsa_key.pub").and_return(true)
36
+ File.stub(:exists?).with("/etc/ssh/ssh_host_ecdsa_key.pub").and_return(true)
41
37
 
42
38
  # Ensure we can still use IO.read
43
39
  io_read = IO.method(:read)
@@ -46,27 +42,60 @@ EOS
46
42
  # Return fake public key files so we don't have to go digging for them in unit tests
47
43
  @dsa_key = "ssh-dss AAAAB3NzaC1kc3MAAACBAMHlT02xN8kietxPfhcb98xHueTzKCOTz6dZlP/dmKILHrQOAExuSEeNiA2uvmhHNVQvs/cBsRiDxgSKux3ie2q8+MB6vHCiSpSkoPjrL75iT57YDilCB4/sytt6IJpj+H42wRDWTX0/QRybMHUvmnmEL0cwZXykSvrIum0BKB6hAAAAFQDsi6WUCClhtZIiTY9uh8eAre+SbQAAAIEAgNnuw0uEuqtcVif+AYd/bCZvL9FPqg7DrmTkamNEcVinhUGwsPGJTLJf+o5ens1X4RzQoi1R6Y6zCTL2FN/hZgINJNO0z9BN402wWrZmQd+Vb1U5DyDtveuvipqyQS+fm9neRwdLuv36Fc9f9nkZ7YHpkGPJp+yJpG4OoeREhwgAAACBAIf9kKLf2XiXnlByzlJ2Naa55d/hp2E059VKCRsBS++xFKYKvSqjnDQBFiMtAUhb8EdTyBGyalqOgqogDQVtwHfTZWZwqHAhry9aM06y92Eu/xSey4tWjKeknOsnRe640KC4zmKDBRTrjjkuAdrKPN9k3jl+OCc669JHlIfo6kqf oppa"
48
44
  @rsa_key = "ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAuhcVXV+nNapkyUC5p4TH1ymRxUjtMBKqYWmwyI29gVFnUNeHkKFHWon0KFeGJP2Rm8BfTiZa9ER9e8pRr4Nd+z1C1o0kVoxEEfB9tpSdTlpk1GG83D94l57fij8THRVIwuCEosViUlg1gDgC4SpxbqfdBkUN2qyf6JDOh7t2QpYh7berpDEWeBpb7BKdLEDT57uw7ijKzSNyaXqq8KkB9I+UFrRwpuos4W7ilX+PQ+mWLi2ZZJfTYZMxxVS+qJwiDtNxGCRwTOQZG03kI7eLBZG+igupr0uD4o6qeftPOr0kxgjoPU4nEKvYiGq8Rqd2vYrhiaJHLk9QB6xStQvS3Q== oppa"
45
+ @ecdsa_key = "ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBBx8VgvxmHxs/sIn/ATh0iUcuz1I2Xc0e1ejXCGHBMZ98IE3FBt1ezlqCpNMcHVV2skQQ8vyLbKxzweyZuNSDU8= oppa"
49
46
  IO.stub(:read).with("/etc/ssh/ssh_host_dsa_key.pub").and_return(@dsa_key)
50
47
  IO.stub(:read).with("/etc/ssh/ssh_host_rsa_key.pub").and_return(@rsa_key)
48
+ IO.stub(:read).with("/etc/ssh/ssh_host_ecdsa_key.pub").and_return(@ecdsa_key)
51
49
  end
52
50
 
53
51
  shared_examples "loads keys" do
54
52
  it "reads the key and sets the dsa attribute correctly" do
55
53
  @ohai._require_plugin("ssh_host_key")
56
54
  @ohai[:keys][:ssh][:host_dsa_public].should eql(@dsa_key.split[1])
55
+ @ohai[:keys][:ssh][:host_dsa_type].should be_nil
57
56
  end
58
-
57
+
59
58
  it "reads the key and sets the rsa attribute correctly" do
60
59
  @ohai._require_plugin("ssh_host_key")
61
60
  @ohai[:keys][:ssh][:host_rsa_public].should eql(@rsa_key.split[1])
61
+ @ohai[:keys][:ssh][:host_rsa_type].should be_nil
62
+ end
63
+
64
+ it "reads the key and sets the ecdsa attribute correctly" do
65
+ @ohai._require_plugin("ssh_host_key")
66
+ @ohai[:keys][:ssh][:host_ecdsa_public].should eql(@ecdsa_key.split[1])
67
+ @ohai[:keys][:ssh][:host_ecdsa_type].should eql(@ecdsa_key.split[0])
62
68
  end
63
69
  end
64
70
 
65
71
  context "when an sshd_config exists" do
72
+ let :sshd_config_file do
73
+ <<EOS
74
+ # HostKeys for protocol version 2
75
+ HostKey /etc/ssh/ssh_host_rsa_key
76
+ HostKey /etc/ssh/ssh_host_dsa_key
77
+ HostKey /etc/ssh/ssh_host_ecdsa_key
78
+ EOS
79
+ end
80
+ it_behaves_like "loads keys"
81
+ end
82
+
83
+ context "when an sshd_config exists with commented entries" do
84
+ let :sshd_config_file do
85
+ <<EOS
86
+ # HostKeys for protocol version 2
87
+ #HostKey /etc/ssh/ssh_host_rsa_key
88
+ #HostKey /etc/ssh/ssh_host_dsa_key
89
+ #HostKey /etc/ssh/ssh_host_ecdsa_key
90
+ EOS
91
+ end
66
92
  it_behaves_like "loads keys"
67
93
  end
68
94
 
69
95
  context "when an sshd_config can not be found" do
96
+ let :sshd_config_file do
97
+ nil
98
+ end
70
99
  before do
71
100
  File.stub(:exists?).with("/etc/ssh/sshd_config").and_return(false)
72
101
  File.stub(:exists?).with("/etc/sshd_config").and_return(false)
@@ -114,7 +114,7 @@ describe Ohai::System, "require_plugin" do
114
114
  @ohai.should_receive(:from_file).with(File.expand_path("#{tmp}/plugins/foo.rb")).and_return(true)
115
115
  @ohai.require_plugin("foo")
116
116
  end
117
-
117
+
118
118
  it "should add a found plugin to the list of seen plugins" do
119
119
  @ohai.require_plugin("foo")
120
120
  @ohai.seen_plugins["foo"].should eql(true)
@@ -136,3 +136,21 @@ describe Ohai::System, "require_plugin" do
136
136
  end
137
137
  end
138
138
 
139
+ describe Ohai::System, "all_plugins" do
140
+ before(:each) do
141
+ @ohai = Ohai::System.new
142
+ @ohai.stub!(:from_file).and_return(true)
143
+ @ohai.stub!(:require_plugin).and_return(false)
144
+ @ohai.data[:os] = "ubuntu"
145
+ end
146
+
147
+ it "should load plugins when plugin_path has a trailing slash" do
148
+ Ohai::Config[:plugin_path] = ["/tmp/plugins/"]
149
+ File.stub(:expand_path).with("/tmp/plugins/").and_return("/tmp/plugins") # windows
150
+ Dir.should_receive(:[]).with("/tmp/plugins/*").and_return(["/tmp/plugins/darius.rb"])
151
+ Dir.should_receive(:[]).with("/tmp/plugins/ubuntu/**/*").and_return([])
152
+ @ohai.should_receive(:require_plugin).with("darius")
153
+ @ohai.all_plugins
154
+ end
155
+
156
+ end
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ohai
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.16.0
5
- prerelease:
4
+ version: 6.18.0.rc.0
5
+ prerelease: 7
6
6
  platform: ruby
7
7
  authors:
8
8
  - Adam Jacob
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-01-17 00:00:00.000000000 Z
12
+ date: 2013-06-25 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: systemu
@@ -214,215 +214,226 @@ files:
214
214
  - README.rdoc
215
215
  - Rakefile
216
216
  - docs/man/man1/ohai.1
217
- - lib/ohai/application.rb
218
- - lib/ohai/config.rb
219
- - lib/ohai/exception.rb
220
- - lib/ohai/log.rb
221
- - lib/ohai/mash.rb
222
- - lib/ohai/mixin/command.rb
223
- - lib/ohai/mixin/ec2_metadata.rb
224
- - lib/ohai/mixin/from_file.rb
225
- - lib/ohai/mixin/string.rb
226
- - lib/ohai/plugins/aix/cpu.rb
227
- - lib/ohai/plugins/aix/filesystem.rb
228
- - lib/ohai/plugins/aix/hostname.rb
229
- - lib/ohai/plugins/aix/memory.rb
230
- - lib/ohai/plugins/aix/network.rb
231
- - lib/ohai/plugins/aix/platform.rb
232
- - lib/ohai/plugins/aix/ps.rb
233
- - lib/ohai/plugins/aix/uptime.rb
234
- - lib/ohai/plugins/c.rb
235
- - lib/ohai/plugins/chef.rb
236
- - lib/ohai/plugins/cloud.rb
237
- - lib/ohai/plugins/command.rb
238
- - lib/ohai/plugins/darwin/filesystem.rb
239
- - lib/ohai/plugins/darwin/hostname.rb
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
240
222
  - lib/ohai/plugins/darwin/kernel.rb
241
223
  - lib/ohai/plugins/darwin/network.rb
224
+ - lib/ohai/plugins/darwin/filesystem.rb
242
225
  - lib/ohai/plugins/darwin/platform.rb
243
- - lib/ohai/plugins/darwin/ps.rb
244
- - lib/ohai/plugins/darwin/system_profiler.rb
226
+ - lib/ohai/plugins/darwin/hostname.rb
227
+ - lib/ohai/plugins/darwin/cpu.rb
245
228
  - 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
246
242
  - lib/ohai/plugins/dmi.rb
247
- - lib/ohai/plugins/dmi_common.rb
248
- - lib/ohai/plugins/ec2.rb
249
- - lib/ohai/plugins/erlang.rb
250
- - lib/ohai/plugins/eucalyptus.rb
251
- - lib/ohai/plugins/freebsd/cpu.rb
252
- - lib/ohai/plugins/freebsd/filesystem.rb
253
- - lib/ohai/plugins/freebsd/hostname.rb
254
- - lib/ohai/plugins/freebsd/kernel.rb
255
- - lib/ohai/plugins/freebsd/memory.rb
256
- - lib/ohai/plugins/freebsd/network.rb
257
- - lib/ohai/plugins/freebsd/platform.rb
258
- - lib/ohai/plugins/freebsd/ps.rb
259
- - lib/ohai/plugins/freebsd/uptime.rb
260
- - lib/ohai/plugins/freebsd/virtualization.rb
261
- - lib/ohai/plugins/groovy.rb
262
- - lib/ohai/plugins/hostname.rb
263
- - lib/ohai/plugins/hpux/cpu.rb
264
- - lib/ohai/plugins/hpux/filesystem.rb
265
- - lib/ohai/plugins/hpux/hostname.rb
266
- - lib/ohai/plugins/hpux/memory.rb
267
- - lib/ohai/plugins/hpux/network.rb
268
- - lib/ohai/plugins/hpux/platform.rb
269
- - lib/ohai/plugins/hpux/ps.rb
270
- - lib/ohai/plugins/hpux/uptime.rb
271
- - lib/ohai/plugins/ip_scopes.rb
272
243
  - lib/ohai/plugins/java.rb
273
- - lib/ohai/plugins/kernel.rb
274
- - lib/ohai/plugins/keys.rb
275
- - lib/ohai/plugins/languages.rb
276
- - lib/ohai/plugins/linode.rb
277
- - lib/ohai/plugins/linux/block_device.rb
278
- - lib/ohai/plugins/linux/cpu.rb
279
- - lib/ohai/plugins/linux/filesystem.rb
280
- - lib/ohai/plugins/linux/hostname.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
252
+ - lib/ohai/plugins/ip_scopes.rb
253
+ - lib/ohai/plugins/linux/ps.rb
254
+ - lib/ohai/plugins/linux/virtualization.rb
281
255
  - lib/ohai/plugins/linux/kernel.rb
282
- - lib/ohai/plugins/linux/lsb.rb
283
- - lib/ohai/plugins/linux/memory.rb
284
256
  - lib/ohai/plugins/linux/network.rb
257
+ - lib/ohai/plugins/linux/block_device.rb
258
+ - lib/ohai/plugins/linux/memory.rb
259
+ - lib/ohai/plugins/linux/filesystem.rb
285
260
  - lib/ohai/plugins/linux/platform.rb
286
- - lib/ohai/plugins/linux/ps.rb
261
+ - lib/ohai/plugins/linux/hostname.rb
262
+ - lib/ohai/plugins/linux/cpu.rb
287
263
  - lib/ohai/plugins/linux/uptime.rb
288
- - lib/ohai/plugins/linux/virtualization.rb
264
+ - 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
289
291
  - lib/ohai/plugins/lua.rb
290
- - lib/ohai/plugins/mono.rb
291
- - lib/ohai/plugins/netbsd/cpu.rb
292
- - lib/ohai/plugins/netbsd/filesystem.rb
293
- - lib/ohai/plugins/netbsd/hostname.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
294
311
  - lib/ohai/plugins/netbsd/kernel.rb
295
- - lib/ohai/plugins/netbsd/memory.rb
296
312
  - lib/ohai/plugins/netbsd/network.rb
313
+ - lib/ohai/plugins/netbsd/memory.rb
314
+ - lib/ohai/plugins/netbsd/filesystem.rb
297
315
  - lib/ohai/plugins/netbsd/platform.rb
298
- - lib/ohai/plugins/netbsd/ps.rb
316
+ - lib/ohai/plugins/netbsd/hostname.rb
317
+ - lib/ohai/plugins/netbsd/cpu.rb
299
318
  - lib/ohai/plugins/netbsd/uptime.rb
300
- - lib/ohai/plugins/netbsd/virtualization.rb
301
- - lib/ohai/plugins/network.rb
302
- - lib/ohai/plugins/network_listeners.rb
303
- - lib/ohai/plugins/nodejs.rb
304
- - lib/ohai/plugins/ohai.rb
305
- - lib/ohai/plugins/ohai_time.rb
306
- - lib/ohai/plugins/openbsd/cpu.rb
307
- - lib/ohai/plugins/openbsd/filesystem.rb
308
- - lib/ohai/plugins/openbsd/hostname.rb
309
- - lib/ohai/plugins/openbsd/kernel.rb
310
- - lib/ohai/plugins/openbsd/memory.rb
311
- - lib/ohai/plugins/openbsd/network.rb
312
- - lib/ohai/plugins/openbsd/platform.rb
313
- - lib/ohai/plugins/openbsd/ps.rb
314
- - lib/ohai/plugins/openbsd/uptime.rb
315
- - lib/ohai/plugins/openbsd/virtualization.rb
316
- - lib/ohai/plugins/openstack.rb
317
- - lib/ohai/plugins/os.rb
318
- - lib/ohai/plugins/passwd.rb
319
- - lib/ohai/plugins/perl.rb
320
319
  - lib/ohai/plugins/php.rb
321
- - lib/ohai/plugins/platform.rb
322
- - lib/ohai/plugins/python.rb
323
- - lib/ohai/plugins/rackspace.rb
324
- - lib/ohai/plugins/ruby.rb
325
- - lib/ohai/plugins/sigar/cpu.rb
326
- - lib/ohai/plugins/sigar/filesystem.rb
327
- - lib/ohai/plugins/sigar/hostname.rb
328
- - lib/ohai/plugins/sigar/memory.rb
329
- - lib/ohai/plugins/sigar/network.rb
330
- - lib/ohai/plugins/sigar/network_route.rb
331
- - lib/ohai/plugins/sigar/platform.rb
332
- - lib/ohai/plugins/sigar/uptime.rb
333
- - lib/ohai/plugins/solaris2/cpu.rb
334
- - lib/ohai/plugins/solaris2/dmi.rb
335
- - lib/ohai/plugins/solaris2/filesystem.rb
336
- - lib/ohai/plugins/solaris2/hostname.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
337
325
  - lib/ohai/plugins/solaris2/kernel.rb
326
+ - lib/ohai/plugins/solaris2/dmi.rb
327
+ - lib/ohai/plugins/solaris2/zpools.rb
338
328
  - lib/ohai/plugins/solaris2/network.rb
329
+ - lib/ohai/plugins/solaris2/filesystem.rb
339
330
  - lib/ohai/plugins/solaris2/platform.rb
340
- - lib/ohai/plugins/solaris2/ps.rb
331
+ - lib/ohai/plugins/solaris2/hostname.rb
332
+ - lib/ohai/plugins/solaris2/cpu.rb
341
333
  - lib/ohai/plugins/solaris2/uptime.rb
342
- - lib/ohai/plugins/solaris2/virtualization.rb
343
- - lib/ohai/plugins/solaris2/zpools.rb
344
- - lib/ohai/plugins/ssh_host_key.rb
345
- - lib/ohai/plugins/uptime.rb
346
- - lib/ohai/plugins/virtualization.rb
347
- - lib/ohai/plugins/windows/cpu.rb
348
- - lib/ohai/plugins/windows/filesystem.rb
349
- - lib/ohai/plugins/windows/hostname.rb
350
- - lib/ohai/plugins/windows/kernel.rb
351
- - lib/ohai/plugins/windows/kernel_devices.rb
352
- - lib/ohai/plugins/windows/network.rb
353
- - lib/ohai/plugins/windows/platform.rb
354
- - lib/ohai/plugins/windows/uptime.rb
355
- - lib/ohai/system.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
356
352
  - lib/ohai/version.rb
357
- - lib/ohai.rb
358
- - spec/ohai_spec.rb
359
- - spec/rcov.opts
360
- - spec/spec.opts
361
- - spec/spec_helper.rb
362
- - spec/support/platform_helpers.rb
363
- - spec/unit/mixin/command_spec.rb
364
- - spec/unit/mixin/from_file_spec.rb
365
- - spec/unit/plugins/c_spec.rb
366
- - spec/unit/plugins/chef_spec.rb
367
- - spec/unit/plugins/cloud_spec.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
362
+ - lib/ohai/system.rb
368
363
  - spec/unit/plugins/darwin/hostname_spec.rb
364
+ - spec/unit/plugins/darwin/system_profiler_spec.rb
369
365
  - spec/unit/plugins/darwin/kernel_spec.rb
370
- - spec/unit/plugins/darwin/network_spec.rb
371
366
  - spec/unit/plugins/darwin/platform_spec.rb
367
+ - spec/unit/plugins/darwin/network_spec.rb
372
368
  - spec/unit/plugins/darwin/system_profiler_output.rb
373
- - spec/unit/plugins/darwin/system_profiler_spec.rb
374
- - spec/unit/plugins/dmi_spec.rb
375
- - spec/unit/plugins/ec2_spec.rb
376
- - spec/unit/plugins/erlang_spec.rb
377
- - spec/unit/plugins/eucalyptus_spec.rb
378
- - spec/unit/plugins/fail_spec.rb
379
- - spec/unit/plugins/freebsd/hostname_spec.rb
380
- - spec/unit/plugins/freebsd/kernel_spec.rb
381
- - spec/unit/plugins/freebsd/platform_spec.rb
382
- - spec/unit/plugins/freebsd/virtualization_spec.rb
383
- - spec/unit/plugins/groovy_spec.rb
384
- - spec/unit/plugins/hostname_spec.rb
385
- - spec/unit/plugins/java_spec.rb
386
- - spec/unit/plugins/kernel_spec.rb
387
- - spec/unit/plugins/linode_spec.rb
388
- - spec/unit/plugins/linux/cpu_spec.rb
389
- - spec/unit/plugins/linux/filesystem_spec.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
390
376
  - spec/unit/plugins/linux/hostname_spec.rb
391
377
  - spec/unit/plugins/linux/kernel_spec.rb
378
+ - spec/unit/plugins/linux/virtualization_spec.rb
392
379
  - spec/unit/plugins/linux/lsb_spec.rb
393
- - spec/unit/plugins/linux/network_spec.rb
394
380
  - spec/unit/plugins/linux/platform_spec.rb
381
+ - spec/unit/plugins/linux/network_spec.rb
382
+ - spec/unit/plugins/linux/cpu_spec.rb
383
+ - spec/unit/plugins/linux/filesystem_spec.rb
395
384
  - spec/unit/plugins/linux/uptime_spec.rb
396
- - spec/unit/plugins/linux/virtualization_spec.rb
397
- - spec/unit/plugins/lua_spec.rb
398
- - spec/unit/plugins/mono_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
399
398
  - spec/unit/plugins/netbsd/hostname_spec.rb
400
399
  - spec/unit/plugins/netbsd/kernel_spec.rb
401
400
  - spec/unit/plugins/netbsd/platform_spec.rb
402
- - spec/unit/plugins/network_spec.rb
403
- - spec/unit/plugins/nodejs_spec.rb
404
- - spec/unit/plugins/ohai_spec.rb
405
- - spec/unit/plugins/ohai_time_spec.rb
406
- - spec/unit/plugins/openbsd/hostname_spec.rb
407
- - spec/unit/plugins/openbsd/kernel_spec.rb
408
- - spec/unit/plugins/openbsd/platform_spec.rb
409
- - spec/unit/plugins/os_spec.rb
410
- - spec/unit/plugins/passwd_spec.rb
411
- - spec/unit/plugins/perl_spec.rb
412
- - spec/unit/plugins/php_spec.rb
401
+ - spec/unit/plugins/erlang_spec.rb
402
+ - spec/unit/plugins/c_spec.rb
413
403
  - spec/unit/plugins/platform_spec.rb
414
- - spec/unit/plugins/python_spec.rb
415
- - spec/unit/plugins/rackspace_spec.rb
416
- - spec/unit/plugins/ruby_spec.rb
417
- - spec/unit/plugins/sigar/network_route_spec.rb
404
+ - spec/unit/plugins/azure_spec.rb
405
+ - spec/unit/plugins/java_spec.rb
418
406
  - spec/unit/plugins/solaris2/hostname_spec.rb
419
407
  - spec/unit/plugins/solaris2/kernel_spec.rb
420
- - spec/unit/plugins/solaris2/network_spec.rb
421
- - spec/unit/plugins/solaris2/platform_spec.rb
422
408
  - spec/unit/plugins/solaris2/virtualization_spec.rb
409
+ - spec/unit/plugins/solaris2/platform_spec.rb
410
+ - 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
423
421
  - 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
424
426
  - spec/unit/system_spec.rb
425
- - bin/ohai
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=
426
437
  homepage: http://wiki.opscode.com/display/chef/Ohai
427
438
  licenses: []
428
439
  post_install_message:
@@ -438,12 +449,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
438
449
  required_rubygems_version: !ruby/object:Gem::Requirement
439
450
  none: false
440
451
  requirements:
441
- - - ! '>='
452
+ - - ! '>'
442
453
  - !ruby/object:Gem::Version
443
- version: '0'
454
+ version: 1.3.1
444
455
  requirements: []
445
456
  rubyforge_project:
446
- rubygems_version: 1.8.23
457
+ rubygems_version: 1.8.21
447
458
  signing_key:
448
459
  specification_version: 3
449
460
  summary: Ohai profiles your system and emits JSON