ohai 0.5.0 → 0.5.2
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +3 -3
- data/bin/ohai +14 -4
- data/docs/man/man1/ohai.1 +23 -0
- data/lib/ohai.rb +1 -1
- data/lib/ohai/application.rb +8 -0
- data/lib/ohai/plugins/chef.rb +23 -0
- data/lib/ohai/plugins/groovy.rb +35 -0
- data/lib/ohai/plugins/java.rb +6 -3
- data/lib/ohai/plugins/kernel.rb +1 -1
- data/lib/ohai/plugins/linux/network.rb +1 -1
- data/lib/ohai/plugins/linux/platform.rb +1 -1
- data/lib/ohai/plugins/lua.rb +34 -0
- data/lib/ohai/plugins/mono.rb +37 -0
- data/lib/ohai/plugins/network_listeners.rb +47 -0
- data/lib/ohai/plugins/ohai.rb +23 -0
- data/lib/ohai/plugins/os.rb +5 -4
- data/lib/ohai/plugins/perl.rb +5 -3
- data/lib/ohai/plugins/php.rb +36 -0
- data/lib/ohai/plugins/rackspace.rb +14 -4
- data/lib/ohai/plugins/windows/filesystem.rb +0 -0
- data/lib/ohai/system.rb +14 -9
- data/spec/ohai/mixin/command_spec.rb +1 -1
- data/spec/ohai/mixin/from_file_spec.rb +1 -1
- data/spec/ohai/plugins/chef_spec.rb +38 -0
- data/spec/ohai/plugins/cloud_spec.rb +3 -1
- data/spec/ohai/plugins/darwin/hostname_spec.rb +1 -1
- data/spec/ohai/plugins/darwin/kernel_spec.rb +1 -1
- data/spec/ohai/plugins/darwin/platform_spec.rb +1 -1
- data/spec/ohai/plugins/dmi_spec.rb +1 -1
- data/spec/ohai/plugins/ec2_spec.rb +1 -1
- data/spec/ohai/plugins/erlang_spec.rb +1 -1
- data/spec/ohai/plugins/freebsd/hostname_spec.rb +1 -1
- data/spec/ohai/plugins/freebsd/kernel_spec.rb +1 -1
- data/spec/ohai/plugins/freebsd/platform_spec.rb +1 -1
- data/spec/ohai/plugins/groovy_spec.rb +53 -0
- data/spec/ohai/plugins/hostname_spec.rb +1 -1
- data/spec/ohai/plugins/java_spec.rb +1 -1
- data/spec/ohai/plugins/kernel_spec.rb +1 -1
- data/spec/ohai/plugins/linux/cpu_spec.rb +1 -1
- data/spec/ohai/plugins/linux/hostname_spec.rb +1 -1
- data/spec/ohai/plugins/linux/kernel_spec.rb +1 -1
- data/spec/ohai/plugins/linux/lsb_spec.rb +1 -1
- data/spec/ohai/plugins/linux/platform_spec.rb +32 -1
- data/spec/ohai/plugins/linux/uptime_spec.rb +1 -1
- data/spec/ohai/plugins/linux/virtualization_spec.rb +1 -1
- data/spec/ohai/plugins/lua_spec.rb +53 -0
- data/spec/ohai/plugins/mono_spec.rb +53 -0
- data/spec/ohai/plugins/netbsd/hostname_spec.rb +1 -1
- data/spec/ohai/plugins/netbsd/kernel_spec.rb +1 -1
- data/spec/ohai/plugins/netbsd/platform_spec.rb +1 -1
- data/spec/ohai/plugins/ohai_spec.rb +33 -0
- data/spec/ohai/plugins/ohai_time_spec.rb +1 -1
- data/spec/ohai/plugins/openbsd/hostname_spec.rb +1 -1
- data/spec/ohai/plugins/openbsd/kernel_spec.rb +1 -1
- data/spec/ohai/plugins/openbsd/platform_spec.rb +1 -1
- data/spec/ohai/plugins/os_spec.rb +9 -3
- data/spec/ohai/plugins/passwd_spec.rb +1 -1
- data/spec/ohai/plugins/perl_spec.rb +3 -3
- data/spec/ohai/plugins/php_spec.rb +52 -0
- data/spec/ohai/plugins/platform_spec.rb +1 -1
- data/spec/ohai/plugins/python_spec.rb +1 -1
- data/spec/ohai/plugins/rackspace_spec.rb +1 -1
- data/spec/ohai/plugins/ruby_spec.rb +1 -1
- data/spec/ohai/plugins/solaris2/hostname_spec.rb +1 -1
- data/spec/ohai/plugins/solaris2/kernel_spec.rb +1 -1
- data/spec/ohai/plugins/solaris2/network_spec.rb +1 -1
- data/spec/ohai/system_spec.rb +1 -1
- data/spec/ohai_spec.rb +1 -1
- data/spec/spec_helper.rb +0 -5
- metadata +32 -7
@@ -0,0 +1,53 @@
|
|
1
|
+
#
|
2
|
+
# Author:: Doug MacEachern <dougm@vmware.com>
|
3
|
+
# Copyright:: Copyright (c) 2009 VMware, Inc.
|
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
|
+
|
20
|
+
require File.join(File.dirname(__FILE__), '..', '..', '/spec_helper.rb')
|
21
|
+
|
22
|
+
describe Ohai::System, "plugin mono" do
|
23
|
+
|
24
|
+
before(:each) do
|
25
|
+
@ohai = Ohai::System.new
|
26
|
+
@ohai[:languages] = Mash.new
|
27
|
+
@ohai.stub!(:require_plugin).and_return(true)
|
28
|
+
@status = 0
|
29
|
+
@stdout = "Mono JIT compiler version 1.2.6 (tarball)\nCopyright (C) 2002-2007 Novell, Inc and Contributors. www.mono-project.com\n"
|
30
|
+
@stderr = ""
|
31
|
+
@ohai.stub!(:run_command).with({:no_status_check=>true, :command=>"mono -V"}).and_return([@status, @stdout, @stderr])
|
32
|
+
end
|
33
|
+
|
34
|
+
it "should get the mono version from running mono -V" do
|
35
|
+
@ohai.should_receive(:run_command).with({:no_status_check=>true, :command=>"mono -V"}).and_return([0, "Mono JIT compiler version 1.2.6 (tarball)\nCopyright (C) 2002-2007 Novell, Inc and Contributors. www.mono-project.com\n", ""])
|
36
|
+
@ohai._require_plugin("mono")
|
37
|
+
end
|
38
|
+
|
39
|
+
it "should set languages[:mono][:version]" do
|
40
|
+
@ohai._require_plugin("mono")
|
41
|
+
@ohai.languages[:mono][:version].should eql("1.2.6")
|
42
|
+
end
|
43
|
+
|
44
|
+
it "should not set the languages[:mono] tree up if mono command fails" do
|
45
|
+
@status = 1
|
46
|
+
@stdout = "Mono JIT compiler version 1.2.6 (tarball)\nCopyright (C) 2002-2007 Novell, Inc and Contributors. www.mono-project.com\n"
|
47
|
+
@stderr = ""
|
48
|
+
@ohai.stub!(:run_command).with({:no_status_check=>true, :command=>"mono -V"}).and_return([@status, @stdout, @stderr])
|
49
|
+
@ohai._require_plugin("mono")
|
50
|
+
@ohai.languages.should_not have_key(:mono)
|
51
|
+
end
|
52
|
+
|
53
|
+
end
|
@@ -0,0 +1,33 @@
|
|
1
|
+
#
|
2
|
+
# Author:: Adam Jacob (<adam@opscode.com>)
|
3
|
+
# Author:: Tollef Fog Heen <tfheen@err.no>
|
4
|
+
# Copyright:: Copyright (c) 2008 Opscode, Inc.
|
5
|
+
# Copyright:: Copyright (c) 2010 Tollef Fog Heen <tfheen@err.no>
|
6
|
+
# License:: Apache License, Version 2.0
|
7
|
+
#
|
8
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
9
|
+
# you may not use this file except in compliance with the License.
|
10
|
+
# You may obtain a copy of the License at
|
11
|
+
#
|
12
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
13
|
+
#
|
14
|
+
# Unless required by applicable law or agreed to in writing, software
|
15
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
16
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
17
|
+
# See the License for the specific language governing permissions and
|
18
|
+
# limitations under the License.
|
19
|
+
#
|
20
|
+
|
21
|
+
require File.expand_path(File.dirname(__FILE__) + '/../../spec_helper.rb')
|
22
|
+
|
23
|
+
describe Ohai::System, "plugin ohai" do
|
24
|
+
before(:each) do
|
25
|
+
@ohai = Ohai::System.new
|
26
|
+
@ohai.stub!(:require_plugin).and_return(true)
|
27
|
+
end
|
28
|
+
|
29
|
+
it "should set ohai[:version] to the current version" do
|
30
|
+
@ohai._require_plugin("ohai")
|
31
|
+
@ohai[:ohai][:version].should == Ohai::VERSION
|
32
|
+
end
|
33
|
+
end
|
@@ -17,7 +17,9 @@
|
|
17
17
|
#
|
18
18
|
|
19
19
|
|
20
|
-
require File.
|
20
|
+
require File.expand_path(File.dirname(__FILE__) + '/../../spec_helper.rb')
|
21
|
+
|
22
|
+
ORIGINAL_CONFIG_HOST_OS = ::Config::CONFIG['host_os']
|
21
23
|
|
22
24
|
describe Ohai::System, "plugin os" do
|
23
25
|
before(:each) do
|
@@ -28,6 +30,10 @@ describe Ohai::System, "plugin os" do
|
|
28
30
|
@ohai[:kernel] = Mash.new
|
29
31
|
@ohai[:kernel][:release] = "kings of leon"
|
30
32
|
end
|
33
|
+
|
34
|
+
after do
|
35
|
+
::Config::CONFIG['host_os'] = ORIGINAL_CONFIG_HOST_OS
|
36
|
+
end
|
31
37
|
|
32
38
|
it "should set os_version to kernel_release" do
|
33
39
|
@ohai._require_plugin("os")
|
@@ -36,7 +42,7 @@ describe Ohai::System, "plugin os" do
|
|
36
42
|
|
37
43
|
describe "on linux" do
|
38
44
|
before(:each) do
|
39
|
-
|
45
|
+
::Config::CONFIG['host_os'] = "linux"
|
40
46
|
end
|
41
47
|
|
42
48
|
it "should set the os to linux" do
|
@@ -58,7 +64,7 @@ describe Ohai::System, "plugin os" do
|
|
58
64
|
|
59
65
|
describe "on solaris" do
|
60
66
|
before do
|
61
|
-
|
67
|
+
::Config::CONFIG['host_os'] = "solaris2.42" #heh
|
62
68
|
end
|
63
69
|
|
64
70
|
it "sets the os to solaris2" do
|
@@ -16,7 +16,7 @@
|
|
16
16
|
# limitations under the License.
|
17
17
|
#
|
18
18
|
|
19
|
-
require File.
|
19
|
+
require File.expand_path(File.dirname(__FILE__) + '/../../spec_helper.rb')
|
20
20
|
|
21
21
|
describe Ohai::System, "plugin perl" do
|
22
22
|
before(:each) do
|
@@ -26,7 +26,7 @@ describe Ohai::System, "plugin perl" do
|
|
26
26
|
@pid = mock("PID", :null_object => true)
|
27
27
|
@stderr = mock("STDERR", :null_object => true)
|
28
28
|
@stdout = mock("STDOUT", :null_object => true)
|
29
|
-
@stdout.stub!(:
|
29
|
+
@stdout.stub!(:each_line).and_yield("version='5.8.8';").
|
30
30
|
and_yield("archname='darwin-thread-multi-2level';")
|
31
31
|
@stdin = mock("STDIN", :null_object => true)
|
32
32
|
@status = 0
|
@@ -49,7 +49,7 @@ describe Ohai::System, "plugin perl" do
|
|
49
49
|
end
|
50
50
|
|
51
51
|
it "should iterate over each line of perl command's stdout" do
|
52
|
-
@stdout.should_receive(:
|
52
|
+
@stdout.should_receive(:each_line).and_return(true)
|
53
53
|
@ohai._require_plugin("perl")
|
54
54
|
end
|
55
55
|
|
@@ -0,0 +1,52 @@
|
|
1
|
+
#
|
2
|
+
# Author:: Doug MacEachern <dougm@vmware.com>
|
3
|
+
# Copyright:: Copyright (c) 2009 VMware, Inc.
|
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.join(File.dirname(__FILE__), '..', '..', '/spec_helper.rb')
|
20
|
+
|
21
|
+
describe Ohai::System, "plugin php" do
|
22
|
+
|
23
|
+
before(:each) do
|
24
|
+
@ohai = Ohai::System.new
|
25
|
+
@ohai[:languages] = Mash.new
|
26
|
+
@ohai.stub!(:require_plugin).and_return(true)
|
27
|
+
@status = 0
|
28
|
+
@stdout = "PHP 5.1.6 (cli) (built: Jul 16 2008 19:52:52)\nCopyright (c) 1997-2006 The PHP Group\nZend Engine v2.1.0, Copyright (c) 1998-2006 Zend Technologies\n"
|
29
|
+
@stderr = ""
|
30
|
+
@ohai.stub!(:run_command).with({:no_status_check=>true, :command=>"php -v"}).and_return([@status, @stdout, @stderr])
|
31
|
+
end
|
32
|
+
|
33
|
+
it "should get the php version from running php -V" do
|
34
|
+
@ohai.should_receive(:run_command).with({:no_status_check=>true, :command=>"php -v"}).and_return([0, "PHP 5.1.6 (cli) (built: Jul 16 2008 19:52:52)\nCopyright (c) 1997-2006 The PHP Group\nZend Engine v2.1.0, Copyright (c) 1998-2006 Zend Technologies\n", ""])
|
35
|
+
@ohai._require_plugin("php")
|
36
|
+
end
|
37
|
+
|
38
|
+
it "should set languages[:php][:version]" do
|
39
|
+
@ohai._require_plugin("php")
|
40
|
+
@ohai.languages[:php][:version].should eql("5.1.6")
|
41
|
+
end
|
42
|
+
|
43
|
+
it "should not set the languages[:php] tree up if php command fails" do
|
44
|
+
@status = 1
|
45
|
+
@stdout = "PHP 5.1.6 (cli) (built: Jul 16 2008 19:52:52)\nCopyright (c) 1997-2006 The PHP Group\nZend Engine v2.1.0, Copyright (c) 1998-2006 Zend Technologies\n"
|
46
|
+
@stderr = ""
|
47
|
+
@ohai.stub!(:run_command).with({:no_status_check=>true, :command=>"php -v"}).and_return([@status, @stdout, @stderr])
|
48
|
+
@ohai._require_plugin("php")
|
49
|
+
@ohai.languages.should_not have_key(:php)
|
50
|
+
end
|
51
|
+
|
52
|
+
end
|
@@ -15,7 +15,7 @@
|
|
15
15
|
# limitations under the License.
|
16
16
|
#
|
17
17
|
|
18
|
-
require File.
|
18
|
+
require File.expand_path(File.dirname(__FILE__) + '/../../spec_helper.rb')
|
19
19
|
|
20
20
|
describe Ohai::System, "plugin rackspace" do
|
21
21
|
before(:each) do
|
@@ -16,7 +16,7 @@
|
|
16
16
|
# limitations under the License.
|
17
17
|
#
|
18
18
|
|
19
|
-
require File.
|
19
|
+
require File.expand_path(File.dirname(__FILE__) + '/../../../spec_helper.rb')
|
20
20
|
|
21
21
|
describe Ohai::System, "Solaris2.X hostname plugin" do
|
22
22
|
before(:each) do
|
@@ -16,7 +16,7 @@
|
|
16
16
|
# limitations under the License.
|
17
17
|
#
|
18
18
|
|
19
|
-
require File.
|
19
|
+
require File.expand_path(File.dirname(__FILE__) + '/../../../spec_helper.rb')
|
20
20
|
|
21
21
|
describe Ohai::System, "Solaris2.X kernel plugin" do
|
22
22
|
# NOTE: Solaris will report the same module loaded multiple times
|
@@ -16,7 +16,7 @@
|
|
16
16
|
# limitations under the License.
|
17
17
|
#
|
18
18
|
|
19
|
-
require File.
|
19
|
+
require File.expand_path(File.dirname(__FILE__) + '/../../../spec_helper.rb')
|
20
20
|
|
21
21
|
describe Ohai::System, "Solaris2.X network plugin" do
|
22
22
|
|
data/spec/ohai/system_spec.rb
CHANGED
@@ -16,7 +16,7 @@
|
|
16
16
|
# limitations under the License.
|
17
17
|
#
|
18
18
|
|
19
|
-
require File.
|
19
|
+
require File.expand_path(File.dirname(__FILE__) + '/../spec_helper.rb')
|
20
20
|
|
21
21
|
describe Ohai::System, "initialize" do
|
22
22
|
it "should return an Ohai::System object" do
|
data/spec/ohai_spec.rb
CHANGED
data/spec/spec_helper.rb
CHANGED
@@ -13,11 +13,6 @@ require 'ohai'
|
|
13
13
|
Ohai::Config[:log_level] = :error
|
14
14
|
|
15
15
|
def it_should_check_from(plugin, attribute, from, value)
|
16
|
-
it "should get the #{attribute} value from '#{from}'" do
|
17
|
-
@ohai.should_receive(:from).with(from).and_return(value)
|
18
|
-
@ohai._require_plugin(plugin)
|
19
|
-
end
|
20
|
-
|
21
16
|
it "should set the #{attribute} to the value from '#{from}'" do
|
22
17
|
@ohai._require_plugin(plugin)
|
23
18
|
@ohai[attribute].should == value
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 5
|
8
|
-
-
|
9
|
-
version: 0.5.
|
8
|
+
- 2
|
9
|
+
version: 0.5.2
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Adam Jacob
|
@@ -14,25 +14,29 @@ autorequire: ohai
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2010-
|
17
|
+
date: 2010-05-06 00:00:00 -07:00
|
18
18
|
default_executable:
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
name: json
|
22
22
|
prerelease: false
|
23
23
|
requirement: &id001 !ruby/object:Gem::Requirement
|
24
|
+
none: false
|
24
25
|
requirements:
|
25
|
-
- -
|
26
|
+
- - <=
|
26
27
|
- !ruby/object:Gem::Version
|
27
28
|
segments:
|
28
|
-
-
|
29
|
-
|
29
|
+
- 1
|
30
|
+
- 4
|
31
|
+
- 2
|
32
|
+
version: 1.4.2
|
30
33
|
type: :runtime
|
31
34
|
version_requirements: *id001
|
32
35
|
- !ruby/object:Gem::Dependency
|
33
36
|
name: extlib
|
34
37
|
prerelease: false
|
35
38
|
requirement: &id002 !ruby/object:Gem::Requirement
|
39
|
+
none: false
|
36
40
|
requirements:
|
37
41
|
- - ">="
|
38
42
|
- !ruby/object:Gem::Version
|
@@ -45,6 +49,7 @@ dependencies:
|
|
45
49
|
name: systemu
|
46
50
|
prerelease: false
|
47
51
|
requirement: &id003 !ruby/object:Gem::Requirement
|
52
|
+
none: false
|
48
53
|
requirements:
|
49
54
|
- - ">="
|
50
55
|
- !ruby/object:Gem::Version
|
@@ -57,6 +62,7 @@ dependencies:
|
|
57
62
|
name: mixlib-cli
|
58
63
|
prerelease: false
|
59
64
|
requirement: &id004 !ruby/object:Gem::Requirement
|
65
|
+
none: false
|
60
66
|
requirements:
|
61
67
|
- - ">="
|
62
68
|
- !ruby/object:Gem::Version
|
@@ -69,6 +75,7 @@ dependencies:
|
|
69
75
|
name: mixlib-config
|
70
76
|
prerelease: false
|
71
77
|
requirement: &id005 !ruby/object:Gem::Requirement
|
78
|
+
none: false
|
72
79
|
requirements:
|
73
80
|
- - ">="
|
74
81
|
- !ruby/object:Gem::Version
|
@@ -81,6 +88,7 @@ dependencies:
|
|
81
88
|
name: mixlib-log
|
82
89
|
prerelease: false
|
83
90
|
requirement: &id006 !ruby/object:Gem::Requirement
|
91
|
+
none: false
|
84
92
|
requirements:
|
85
93
|
- - ">="
|
86
94
|
- !ruby/object:Gem::Version
|
@@ -101,6 +109,7 @@ files:
|
|
101
109
|
- LICENSE
|
102
110
|
- README.rdoc
|
103
111
|
- Rakefile
|
112
|
+
- docs/man/man1/ohai.1
|
104
113
|
- lib/ohai/application.rb
|
105
114
|
- lib/ohai/config.rb
|
106
115
|
- lib/ohai/exception.rb
|
@@ -108,6 +117,7 @@ files:
|
|
108
117
|
- lib/ohai/mixin/command.rb
|
109
118
|
- lib/ohai/mixin/from_file.rb
|
110
119
|
- lib/ohai/mixin/string.rb
|
120
|
+
- lib/ohai/plugins/chef.rb
|
111
121
|
- lib/ohai/plugins/cloud.rb
|
112
122
|
- lib/ohai/plugins/command.rb
|
113
123
|
- lib/ohai/plugins/darwin/filesystem.rb
|
@@ -133,6 +143,7 @@ files:
|
|
133
143
|
- lib/ohai/plugins/freebsd/ssh_host_key.rb
|
134
144
|
- lib/ohai/plugins/freebsd/uptime.rb
|
135
145
|
- lib/ohai/plugins/freebsd/virtualization.rb
|
146
|
+
- lib/ohai/plugins/groovy.rb
|
136
147
|
- lib/ohai/plugins/hostname.rb
|
137
148
|
- lib/ohai/plugins/java.rb
|
138
149
|
- lib/ohai/plugins/kernel.rb
|
@@ -151,6 +162,8 @@ files:
|
|
151
162
|
- lib/ohai/plugins/linux/ssh_host_key.rb
|
152
163
|
- lib/ohai/plugins/linux/uptime.rb
|
153
164
|
- lib/ohai/plugins/linux/virtualization.rb
|
165
|
+
- lib/ohai/plugins/lua.rb
|
166
|
+
- lib/ohai/plugins/mono.rb
|
154
167
|
- lib/ohai/plugins/netbsd/cpu.rb
|
155
168
|
- lib/ohai/plugins/netbsd/filesystem.rb
|
156
169
|
- lib/ohai/plugins/netbsd/hostname.rb
|
@@ -163,6 +176,8 @@ files:
|
|
163
176
|
- lib/ohai/plugins/netbsd/uptime.rb
|
164
177
|
- lib/ohai/plugins/netbsd/virtualization.rb
|
165
178
|
- lib/ohai/plugins/network.rb
|
179
|
+
- lib/ohai/plugins/network_listeners.rb
|
180
|
+
- lib/ohai/plugins/ohai.rb
|
166
181
|
- lib/ohai/plugins/ohai_time.rb
|
167
182
|
- lib/ohai/plugins/openbsd/cpu.rb
|
168
183
|
- lib/ohai/plugins/openbsd/filesystem.rb
|
@@ -178,6 +193,7 @@ files:
|
|
178
193
|
- lib/ohai/plugins/os.rb
|
179
194
|
- lib/ohai/plugins/passwd.rb
|
180
195
|
- lib/ohai/plugins/perl.rb
|
196
|
+
- lib/ohai/plugins/php.rb
|
181
197
|
- lib/ohai/plugins/platform.rb
|
182
198
|
- lib/ohai/plugins/python.rb
|
183
199
|
- lib/ohai/plugins/rackspace.rb
|
@@ -200,6 +216,7 @@ files:
|
|
200
216
|
- lib/ohai.rb
|
201
217
|
- spec/ohai/mixin/command_spec.rb
|
202
218
|
- spec/ohai/mixin/from_file_spec.rb
|
219
|
+
- spec/ohai/plugins/chef_spec.rb
|
203
220
|
- spec/ohai/plugins/cloud_spec.rb
|
204
221
|
- spec/ohai/plugins/darwin/hostname_spec.rb
|
205
222
|
- spec/ohai/plugins/darwin/kernel_spec.rb
|
@@ -210,6 +227,7 @@ files:
|
|
210
227
|
- spec/ohai/plugins/freebsd/hostname_spec.rb
|
211
228
|
- spec/ohai/plugins/freebsd/kernel_spec.rb
|
212
229
|
- spec/ohai/plugins/freebsd/platform_spec.rb
|
230
|
+
- spec/ohai/plugins/groovy_spec.rb
|
213
231
|
- spec/ohai/plugins/hostname_spec.rb
|
214
232
|
- spec/ohai/plugins/java_spec.rb
|
215
233
|
- spec/ohai/plugins/kernel_spec.rb
|
@@ -220,9 +238,12 @@ files:
|
|
220
238
|
- spec/ohai/plugins/linux/platform_spec.rb
|
221
239
|
- spec/ohai/plugins/linux/uptime_spec.rb
|
222
240
|
- spec/ohai/plugins/linux/virtualization_spec.rb
|
241
|
+
- spec/ohai/plugins/lua_spec.rb
|
242
|
+
- spec/ohai/plugins/mono_spec.rb
|
223
243
|
- spec/ohai/plugins/netbsd/hostname_spec.rb
|
224
244
|
- spec/ohai/plugins/netbsd/kernel_spec.rb
|
225
245
|
- spec/ohai/plugins/netbsd/platform_spec.rb
|
246
|
+
- spec/ohai/plugins/ohai_spec.rb
|
226
247
|
- spec/ohai/plugins/ohai_time_spec.rb
|
227
248
|
- spec/ohai/plugins/openbsd/hostname_spec.rb
|
228
249
|
- spec/ohai/plugins/openbsd/kernel_spec.rb
|
@@ -230,6 +251,7 @@ files:
|
|
230
251
|
- spec/ohai/plugins/os_spec.rb
|
231
252
|
- spec/ohai/plugins/passwd_spec.rb
|
232
253
|
- spec/ohai/plugins/perl_spec.rb
|
254
|
+
- spec/ohai/plugins/php_spec.rb
|
233
255
|
- spec/ohai/plugins/platform_spec.rb
|
234
256
|
- spec/ohai/plugins/python_spec.rb
|
235
257
|
- spec/ohai/plugins/rackspace_spec.rb
|
@@ -242,6 +264,7 @@ files:
|
|
242
264
|
- spec/rcov.opts
|
243
265
|
- spec/spec.opts
|
244
266
|
- spec/spec_helper.rb
|
267
|
+
- bin/ohai
|
245
268
|
has_rdoc: true
|
246
269
|
homepage: http://wiki.opscode.com/display/ohai
|
247
270
|
licenses: []
|
@@ -252,6 +275,7 @@ rdoc_options: []
|
|
252
275
|
require_paths:
|
253
276
|
- lib
|
254
277
|
required_ruby_version: !ruby/object:Gem::Requirement
|
278
|
+
none: false
|
255
279
|
requirements:
|
256
280
|
- - ">="
|
257
281
|
- !ruby/object:Gem::Version
|
@@ -259,6 +283,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
259
283
|
- 0
|
260
284
|
version: "0"
|
261
285
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
286
|
+
none: false
|
262
287
|
requirements:
|
263
288
|
- - ">="
|
264
289
|
- !ruby/object:Gem::Version
|
@@ -268,7 +293,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
268
293
|
requirements: []
|
269
294
|
|
270
295
|
rubyforge_project:
|
271
|
-
rubygems_version: 1.3.6
|
296
|
+
rubygems_version: 1.3.6.1
|
272
297
|
signing_key:
|
273
298
|
specification_version: 3
|
274
299
|
summary: Ohai profiles your system and emits JSON
|