ohai 7.0.2 → 7.0.4.rc.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +13 -5
- data/docs/man/man1/ohai.1 +8 -4
- data/lib/ohai/dsl/plugin/versionvii.rb +1 -1
- data/lib/ohai/plugins/linux/platform.rb +1 -1
- data/lib/ohai/version.rb +1 -1
- data/spec/unit/dsl/plugin_spec.rb +27 -26
- data/spec/unit/plugins/linux/platform_spec.rb +23 -9
- data/spec/unit/runner_spec.rb +15 -2
- metadata +38 -38
checksums.yaml
CHANGED
@@ -1,7 +1,15 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
|
2
|
+
!binary "U0hBMQ==":
|
3
|
+
metadata.gz: !binary |-
|
4
|
+
YWVkY2FhNjljYmVjY2I4MWVlMzE1YjQ2OWM4MTI3NDg4MDRhOTFlMQ==
|
5
|
+
data.tar.gz: !binary |-
|
6
|
+
NmQ4NGNjMTkzZTE2M2E1MGNjOGZjZjQ1YTc3NTM1NTljMTk2MGZlOA==
|
5
7
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
|
8
|
+
metadata.gz: !binary |-
|
9
|
+
NDlkYzVmNWNiMTA0NzgxODQ4YWM4NmUxNGM4YzU3ZjRjNjM4ODY1ZjYzMWQ4
|
10
|
+
MTFhOWZkMDkyNDVlZTQyYzRhMjBkMzNkZjAyNzE5MmQ3OWE5MWM2NjE2Zjg1
|
11
|
+
NmVmMjk5MTJhZTYxMDNhOTFiOTYwYjUyODY2NzhkN2NlOTViMDI=
|
12
|
+
data.tar.gz: !binary |-
|
13
|
+
NTQ5ODY3YWI3ZWI3YmRhOWY0YjhhYmQ3MjdmNWQ1NGMzYmQ5MDY5NGY4MzIy
|
14
|
+
NDExZDc1YWRhNWE1NjFhYjFhNWU0NGIwOTIzYmE2OGFjN2EyMTk1ZjU4ZGY4
|
15
|
+
ZGU5ZTcyMjZiYTI0MjIyZTNiOTc3Y2NkNjBhODNiYmI2MWJjYjU=
|
data/docs/man/man1/ohai.1
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
.\" Man page generated from reStructuredText.
|
2
|
+
.
|
1
3
|
.TH "OHAI" "1" "Ohai 7.0.0" "" "ohai"
|
2
4
|
.SH NAME
|
3
5
|
ohai \- The man page for the ohai command line tool.
|
@@ -28,8 +30,6 @@ level margin: \\n[rst2man-indent\\n[rst2man-indent-level]]
|
|
28
30
|
.\" new: \\n[rst2man-indent\\n[rst2man-indent-level]]
|
29
31
|
.in \\n[rst2man-indent\\n[rst2man-indent-level]]u
|
30
32
|
..
|
31
|
-
.\" Man page generated from reStructuredText.
|
32
|
-
.
|
33
33
|
.sp
|
34
34
|
Ohai is a tool that is used to detect attributes on a node, and then provide these attributes to the chef\-client at the start of every chef\-client run. Ohai is required by the chef\-client and must be present on a node. (Ohai is installed on a node as part of the chef\-client install process.)
|
35
35
|
.sp
|
@@ -59,12 +59,16 @@ ohai is the command\-line interface for Ohai, a tool that is used to detect attr
|
|
59
59
|
.SH OPTIONS
|
60
60
|
.sp
|
61
61
|
This command has the following syntax:
|
62
|
+
.INDENT 0.0
|
63
|
+
.INDENT 3.5
|
62
64
|
.sp
|
63
65
|
.nf
|
64
66
|
.ft C
|
65
67
|
ohai OPTION
|
66
68
|
.ft P
|
67
69
|
.fi
|
70
|
+
.UNINDENT
|
71
|
+
.UNINDENT
|
68
72
|
.sp
|
69
73
|
This tool has the following options:
|
70
74
|
.INDENT 0.0
|
@@ -73,7 +77,7 @@ This tool has the following options:
|
|
73
77
|
Use to have Ohai show only output for named attributes.
|
74
78
|
.TP
|
75
79
|
.B \fB\-d PATH\fP, \fB\-\-directory PATH\fP
|
76
|
-
The directory in which Ohai plugins are located. For example: \fB/etc/ohai/plugins\fP
|
80
|
+
The directory in which Ohai plugins are located. For example: \fB/etc/ohai/plugins\fP\&.
|
77
81
|
.TP
|
78
82
|
.B \fB\-h\fP, \fB\-\-help\fP
|
79
83
|
Shows help for the command.
|
@@ -85,7 +89,7 @@ The level of logging that will be stored in a log file.
|
|
85
89
|
The location in which log file output files will be saved. If this location is set to something other than \fBSTDOUT\fP, standard output logging will still be performed (otherwise there would be no output other than to a file).
|
86
90
|
.TP
|
87
91
|
.B \fB\-v\fP, \fB\-\-version\fP
|
88
|
-
The version of Ohai
|
92
|
+
The version of Ohai\&.
|
89
93
|
.UNINDENT
|
90
94
|
.SH AUTHOR
|
91
95
|
Opscode
|
@@ -105,7 +105,7 @@ Ohai.plugin(:Platform) do
|
|
105
105
|
platform_family "debian"
|
106
106
|
when /fedora/
|
107
107
|
platform_family "fedora"
|
108
|
-
when /oracle/, /centos/, /redhat/, /scientific/, /enterpriseenterprise/, /amazon/, /xenserver/, /cloudlinux/ # Note that 'enterpriseenterprise' is oracle's LSB "distributor ID"
|
108
|
+
when /oracle/, /centos/, /redhat/, /scientific/, /enterpriseenterprise/, /amazon/, /xenserver/, /cloudlinux/, /ibm_powerkvm/ # Note that 'enterpriseenterprise' is oracle's LSB "distributor ID"
|
109
109
|
platform_family "rhel"
|
110
110
|
when /suse/
|
111
111
|
platform_family "suse"
|
data/lib/ohai/version.rb
CHANGED
@@ -87,8 +87,9 @@ shared_examples "Ohai::DSL::Plugin" do
|
|
87
87
|
end
|
88
88
|
|
89
89
|
describe Ohai::DSL::Plugin::VersionVII do
|
90
|
-
|
91
|
-
|
90
|
+
it "should not modify the plugin name when the plugin is named correctly" do
|
91
|
+
plugin = Ohai.plugin(:FunkyVALIDpluginName) { }.new({ })
|
92
|
+
plugin.name.should eql(:FunkyVALIDpluginName)
|
92
93
|
end
|
93
94
|
|
94
95
|
describe "when the plugin is named incorrectly" do
|
@@ -113,24 +114,24 @@ describe Ohai::DSL::Plugin::VersionVII do
|
|
113
114
|
|
114
115
|
describe "#version" do
|
115
116
|
it "should save the plugin version as :version7" do
|
116
|
-
plugin = Ohai.plugin(
|
117
|
+
plugin = Ohai.plugin(:Test) { }
|
117
118
|
plugin.version.should eql(:version7)
|
118
119
|
end
|
119
120
|
end
|
120
121
|
|
121
122
|
describe "#provides" do
|
122
123
|
it "should collect a single attribute" do
|
123
|
-
plugin = Ohai.plugin(
|
124
|
+
plugin = Ohai.plugin(:Test) { provides("one") }
|
124
125
|
plugin.provides_attrs.should eql(["one"])
|
125
126
|
end
|
126
127
|
|
127
128
|
it "should collect a list of attributes" do
|
128
|
-
plugin = Ohai.plugin(
|
129
|
+
plugin = Ohai.plugin(:Test) { provides("one", "two", "three") }
|
129
130
|
plugin.provides_attrs.should eql(["one", "two", "three"])
|
130
131
|
end
|
131
132
|
|
132
133
|
it "should collect from multiple provides statements" do
|
133
|
-
plugin = Ohai.plugin(
|
134
|
+
plugin = Ohai.plugin(:Test) {
|
134
135
|
provides("one")
|
135
136
|
provides("two", "three")
|
136
137
|
provides("four")
|
@@ -139,31 +140,31 @@ describe Ohai::DSL::Plugin::VersionVII do
|
|
139
140
|
end
|
140
141
|
|
141
142
|
it "should collect attributes across multiple plugin files" do
|
142
|
-
plugin = Ohai.plugin(
|
143
|
-
plugin = Ohai.plugin(
|
143
|
+
plugin = Ohai.plugin(:Test) { provides("one") }
|
144
|
+
plugin = Ohai.plugin(:Test) { provides("two", "three") }
|
144
145
|
plugin.provides_attrs.should eql(["one", "two", "three"])
|
145
146
|
end
|
146
147
|
|
147
148
|
it "should collect unique attributes" do
|
148
|
-
plugin = Ohai.plugin(
|
149
|
-
plugin = Ohai.plugin(
|
149
|
+
plugin = Ohai.plugin(:Test) { provides("one") }
|
150
|
+
plugin = Ohai.plugin(:Test) { provides("one", "two") }
|
150
151
|
plugin.provides_attrs.should eql(["one", "two"])
|
151
152
|
end
|
152
153
|
end
|
153
154
|
|
154
155
|
describe "#depends" do
|
155
156
|
it "should collect a single dependency" do
|
156
|
-
plugin = Ohai.plugin(
|
157
|
+
plugin = Ohai.plugin(:Test) { depends("one") }
|
157
158
|
plugin.depends_attrs.should eql(["one"])
|
158
159
|
end
|
159
160
|
|
160
161
|
it "should collect a list of dependencies" do
|
161
|
-
plugin = Ohai.plugin(
|
162
|
+
plugin = Ohai.plugin(:Test) { depends("one", "two", "three") }
|
162
163
|
plugin.depends_attrs.should eql(["one", "two", "three"])
|
163
164
|
end
|
164
165
|
|
165
166
|
it "should collect from multiple depends statements" do
|
166
|
-
plugin = Ohai.plugin(
|
167
|
+
plugin = Ohai.plugin(:Test) {
|
167
168
|
depends("one")
|
168
169
|
depends("two", "three")
|
169
170
|
depends("four")
|
@@ -172,38 +173,38 @@ describe Ohai::DSL::Plugin::VersionVII do
|
|
172
173
|
end
|
173
174
|
|
174
175
|
it "should collect dependencies across multiple plugin files" do
|
175
|
-
plugin = Ohai.plugin(
|
176
|
-
plugin = Ohai.plugin(
|
176
|
+
plugin = Ohai.plugin(:Test) { depends("one") }
|
177
|
+
plugin = Ohai.plugin(:Test) { depends("two", "three") }
|
177
178
|
plugin.depends_attrs.should eql(["one", "two", "three"])
|
178
179
|
end
|
179
180
|
|
180
181
|
it "should collect unique attributes" do
|
181
|
-
plugin = Ohai.plugin(
|
182
|
-
plugin = Ohai.plugin(
|
182
|
+
plugin = Ohai.plugin(:Test) { depends("one") }
|
183
|
+
plugin = Ohai.plugin(:Test) { depends("one", "two") }
|
183
184
|
plugin.depends_attrs.should eql(["one", "two"])
|
184
185
|
end
|
185
186
|
end
|
186
187
|
|
187
188
|
describe "#collect_data" do
|
188
189
|
it "should save as :default if no platform is given" do
|
189
|
-
plugin = Ohai.plugin(
|
190
|
+
plugin = Ohai.plugin(:Test) { collect_data { } }
|
190
191
|
plugin.data_collector.should have_key(:default)
|
191
192
|
end
|
192
193
|
|
193
194
|
it "should save a single given platform" do
|
194
|
-
plugin = Ohai.plugin(
|
195
|
+
plugin = Ohai.plugin(:Test) { collect_data(:ubuntu) { } }
|
195
196
|
plugin.data_collector.should have_key(:ubuntu)
|
196
197
|
end
|
197
198
|
|
198
199
|
it "should save a list of platforms" do
|
199
|
-
plugin = Ohai.plugin(
|
200
|
+
plugin = Ohai.plugin(:Test) { collect_data(:freebsd, :netbsd, :openbsd) { } }
|
200
201
|
[:freebsd, :netbsd, :openbsd].each do |platform|
|
201
202
|
plugin.data_collector.should have_key(platform)
|
202
203
|
end
|
203
204
|
end
|
204
205
|
|
205
206
|
it "should save multiple collect_data blocks" do
|
206
|
-
plugin = Ohai.plugin(
|
207
|
+
plugin = Ohai.plugin(:Test) {
|
207
208
|
collect_data { }
|
208
209
|
collect_data(:windows) { }
|
209
210
|
collect_data(:darwin) { }
|
@@ -214,8 +215,8 @@ describe Ohai::DSL::Plugin::VersionVII do
|
|
214
215
|
end
|
215
216
|
|
216
217
|
it "should save platforms across multiple plugins" do
|
217
|
-
plugin = Ohai.plugin(
|
218
|
-
plugin = Ohai.plugin(
|
218
|
+
plugin = Ohai.plugin(:Test) { collect_data { } }
|
219
|
+
plugin = Ohai.plugin(:Test) { collect_data(:aix, :sigar) { } }
|
219
220
|
[:aix, :default, :sigar].each do |platform|
|
220
221
|
plugin.data_collector.should have_key(platform)
|
221
222
|
end
|
@@ -223,7 +224,7 @@ describe Ohai::DSL::Plugin::VersionVII do
|
|
223
224
|
|
224
225
|
it "should fail a platform has already been defined in the same plugin" do
|
225
226
|
expect {
|
226
|
-
Ohai.plugin(
|
227
|
+
Ohai.plugin(:Test) {
|
227
228
|
collect_data { }
|
228
229
|
collect_data { }
|
229
230
|
}
|
@@ -231,9 +232,9 @@ describe Ohai::DSL::Plugin::VersionVII do
|
|
231
232
|
end
|
232
233
|
|
233
234
|
it "should fail if a platform has already been defined in another plugin file" do
|
234
|
-
Ohai.plugin(
|
235
|
+
Ohai.plugin(:Test) { collect_data { } }
|
235
236
|
expect {
|
236
|
-
Ohai.plugin(
|
237
|
+
Ohai.plugin(:Test) {
|
237
238
|
collect_data { }
|
238
239
|
}
|
239
240
|
}.to raise_error(Ohai::Exceptions::IllegalPluginDefinition, /collect_data already defined/)
|
@@ -59,18 +59,21 @@ describe Ohai::System, "Linux plugin platform" do
|
|
59
59
|
@plugin[:platform].should == "ubuntu"
|
60
60
|
@plugin[:platform_family].should == "debian"
|
61
61
|
end
|
62
|
+
|
62
63
|
it "should set platform to linuxmint and platform_family to debian [:lsb][:id] contains LinuxMint" do
|
63
64
|
@plugin[:lsb][:id] = "LinuxMint"
|
64
65
|
@plugin.run
|
65
66
|
@plugin[:platform].should == "linuxmint"
|
66
67
|
@plugin[:platform_family].should == "debian"
|
67
68
|
end
|
69
|
+
|
68
70
|
it "should set platform to debian and platform_family to debian [:lsb][:id] contains Debian" do
|
69
71
|
@plugin[:lsb][:id] = "Debian"
|
70
72
|
@plugin.run
|
71
73
|
@plugin[:platform].should == "debian"
|
72
74
|
@plugin[:platform_family].should == "debian"
|
73
75
|
end
|
76
|
+
|
74
77
|
it "should set platform to redhat and platform_family to rhel when [:lsb][:id] contains Redhat" do
|
75
78
|
@plugin[:lsb][:id] = "RedHatEnterpriseServer"
|
76
79
|
@plugin[:lsb][:release] = "5.7"
|
@@ -93,6 +96,14 @@ describe Ohai::System, "Linux plugin platform" do
|
|
93
96
|
@plugin.run
|
94
97
|
@plugin[:platform].should == "scientific"
|
95
98
|
end
|
99
|
+
|
100
|
+
it "should set platform to ibm_powerkvm and platform_family to rhel when [:lsb][:id] contains IBM_PowerKVM" do
|
101
|
+
@plugin[:lsb][:id] = "IBM_PowerKVM"
|
102
|
+
@plugin[:lsb][:release] = "2.1"
|
103
|
+
@plugin.run
|
104
|
+
@plugin[:platform].should == "ibm_powerkvm"
|
105
|
+
@plugin[:platform_family].should == "rhel"
|
106
|
+
end
|
96
107
|
end
|
97
108
|
|
98
109
|
describe "on debian" do
|
@@ -181,7 +192,7 @@ describe Ohai::System, "Linux plugin platform" do
|
|
181
192
|
@plugin.run
|
182
193
|
@plugin[:platform].should == "redhat"
|
183
194
|
@plugin[:platform_version].should == "6.1"
|
184
|
-
|
195
|
+
@plugin[:platform_family].should == "rhel"
|
185
196
|
end
|
186
197
|
|
187
198
|
it "should set the platform to centos and platform_family to rhel" do
|
@@ -190,33 +201,37 @@ describe Ohai::System, "Linux plugin platform" do
|
|
190
201
|
@plugin.run
|
191
202
|
@plugin[:platform].should == "centos"
|
192
203
|
@plugin[:platform_version].should == "5.4"
|
193
|
-
|
194
|
-
|
204
|
+
@plugin[:platform_family].should == "rhel"
|
195
205
|
end
|
196
206
|
|
197
|
-
|
198
207
|
it "should set the platform_family to rhel if the LSB name is oracle-ish" do
|
199
208
|
@plugin[:lsb][:id] = "EnterpriseEnterpriseServer"
|
200
209
|
@plugin.run
|
201
|
-
|
210
|
+
@plugin[:platform_family].should == "rhel"
|
202
211
|
end
|
203
212
|
|
204
213
|
it "should set the platform_family to rhel if the LSB name is amazon-ish" do
|
205
214
|
@plugin[:lsb][:id] = "Amazon"
|
206
215
|
@plugin.run
|
207
|
-
|
216
|
+
@plugin[:platform_family].should == "rhel"
|
208
217
|
end
|
209
218
|
|
210
219
|
it "should set the platform_family to fedora if the LSB name is fedora-ish" do
|
211
220
|
@plugin[:lsb][:id] = "Fedora"
|
212
221
|
@plugin.run
|
213
|
-
|
222
|
+
@plugin[:platform_family].should == "fedora"
|
214
223
|
end
|
215
224
|
|
216
225
|
it "should set the platform_family to redhat if the LSB name is scientific-ish" do
|
217
226
|
@plugin[:lsb][:id] = "Scientific"
|
218
227
|
@plugin.run
|
219
|
-
|
228
|
+
@plugin[:platform_family].should == "rhel"
|
229
|
+
end
|
230
|
+
|
231
|
+
it "should set the platform_family to redhat if the LSB name is ibm-ish" do
|
232
|
+
@plugin[:lsb][:id] = "IBM_PowerKVM"
|
233
|
+
@plugin.run
|
234
|
+
@plugin[:platform_family].should == "rhel"
|
220
235
|
end
|
221
236
|
end
|
222
237
|
|
@@ -432,5 +447,4 @@ describe Ohai::System, "Linux plugin platform" do
|
|
432
447
|
end
|
433
448
|
end
|
434
449
|
end
|
435
|
-
|
436
450
|
end
|
data/spec/unit/runner_spec.rb
CHANGED
@@ -34,7 +34,7 @@ describe Ohai::Runner, "run_plugin" do
|
|
34
34
|
end
|
35
35
|
|
36
36
|
describe "when running a plugin" do
|
37
|
-
let(:plugin) { double("Ohai::DSL::Plugin", :kind_of? => true, :version => version, :name =>
|
37
|
+
let(:plugin) { double("Ohai::DSL::Plugin", :kind_of? => true, :version => version, :name => :Test, :has_run? => has_run, :dependencies => [ ]) }
|
38
38
|
let(:version) { :version7 }
|
39
39
|
let(:has_run) { false }
|
40
40
|
|
@@ -53,11 +53,24 @@ describe Ohai::Runner, "run_plugin" do
|
|
53
53
|
end
|
54
54
|
|
55
55
|
describe "if the plugin is disabled" do
|
56
|
+
before(:each) do
|
57
|
+
@disabled = Ohai::Config[:disabled_plugins]
|
58
|
+
Ohai::Config[:disabled_plugins] = [:Test]
|
59
|
+
end
|
60
|
+
|
61
|
+
after(:each) do
|
62
|
+
Ohai::Config[:disabled_plugins] = @disabled
|
63
|
+
end
|
64
|
+
|
56
65
|
it "should not run the plugin" do
|
57
|
-
Ohai::Config.should_receive(:[]).with(:disabled_plugins).and_return(["Test"])
|
58
66
|
@runner.should_not_receive(:run_v7_plugin)
|
59
67
|
@runner.run_plugin(plugin)
|
60
68
|
end
|
69
|
+
|
70
|
+
it "should log a message to debug" do
|
71
|
+
Ohai::Log.should_receive(:debug).with(/Skipping disabled plugin Test/)
|
72
|
+
@runner.run_plugin(plugin)
|
73
|
+
end
|
61
74
|
end
|
62
75
|
end
|
63
76
|
end
|
metadata
CHANGED
@@ -1,209 +1,209 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ohai
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 7.0.
|
4
|
+
version: 7.0.4.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-04-
|
11
|
+
date: 2014-04-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: mime-types
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - ~>
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '1.16'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- -
|
24
|
+
- - ~>
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '1.16'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: systemu
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - ~>
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: 2.5.2
|
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
40
|
version: 2.5.2
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: yajl-ruby
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- -
|
45
|
+
- - ! '>='
|
46
46
|
- !ruby/object:Gem::Version
|
47
47
|
version: '0'
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- -
|
52
|
+
- - ! '>='
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '0'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: mixlib-cli
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- -
|
59
|
+
- - ! '>='
|
60
60
|
- !ruby/object:Gem::Version
|
61
61
|
version: '0'
|
62
62
|
type: :runtime
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- -
|
66
|
+
- - ! '>='
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '0'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: mixlib-config
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
|
-
- -
|
73
|
+
- - ~>
|
74
74
|
- !ruby/object:Gem::Version
|
75
75
|
version: '2.0'
|
76
76
|
type: :runtime
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
|
-
- -
|
80
|
+
- - ~>
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: '2.0'
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: mixlib-log
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
|
-
- -
|
87
|
+
- - ! '>='
|
88
88
|
- !ruby/object:Gem::Version
|
89
89
|
version: '0'
|
90
90
|
type: :runtime
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
|
-
- -
|
94
|
+
- - ! '>='
|
95
95
|
- !ruby/object:Gem::Version
|
96
96
|
version: '0'
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
98
|
name: mixlib-shellout
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
100
100
|
requirements:
|
101
|
-
- -
|
101
|
+
- - ~>
|
102
102
|
- !ruby/object:Gem::Version
|
103
103
|
version: '1.2'
|
104
104
|
type: :runtime
|
105
105
|
prerelease: false
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
107
107
|
requirements:
|
108
|
-
- -
|
108
|
+
- - ~>
|
109
109
|
- !ruby/object:Gem::Version
|
110
110
|
version: '1.2'
|
111
111
|
- !ruby/object:Gem::Dependency
|
112
112
|
name: ipaddress
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|
114
114
|
requirements:
|
115
|
-
- -
|
115
|
+
- - ! '>='
|
116
116
|
- !ruby/object:Gem::Version
|
117
117
|
version: '0'
|
118
118
|
type: :runtime
|
119
119
|
prerelease: false
|
120
120
|
version_requirements: !ruby/object:Gem::Requirement
|
121
121
|
requirements:
|
122
|
-
- -
|
122
|
+
- - ! '>='
|
123
123
|
- !ruby/object:Gem::Version
|
124
124
|
version: '0'
|
125
125
|
- !ruby/object:Gem::Dependency
|
126
126
|
name: rake
|
127
127
|
requirement: !ruby/object:Gem::Requirement
|
128
128
|
requirements:
|
129
|
-
- -
|
129
|
+
- - ~>
|
130
130
|
- !ruby/object:Gem::Version
|
131
131
|
version: 10.1.0
|
132
132
|
type: :development
|
133
133
|
prerelease: false
|
134
134
|
version_requirements: !ruby/object:Gem::Requirement
|
135
135
|
requirements:
|
136
|
-
- -
|
136
|
+
- - ~>
|
137
137
|
- !ruby/object:Gem::Version
|
138
138
|
version: 10.1.0
|
139
139
|
- !ruby/object:Gem::Dependency
|
140
140
|
name: rspec-core
|
141
141
|
requirement: !ruby/object:Gem::Requirement
|
142
142
|
requirements:
|
143
|
-
- -
|
143
|
+
- - ! '>='
|
144
144
|
- !ruby/object:Gem::Version
|
145
145
|
version: '0'
|
146
146
|
type: :development
|
147
147
|
prerelease: false
|
148
148
|
version_requirements: !ruby/object:Gem::Requirement
|
149
149
|
requirements:
|
150
|
-
- -
|
150
|
+
- - ! '>='
|
151
151
|
- !ruby/object:Gem::Version
|
152
152
|
version: '0'
|
153
153
|
- !ruby/object:Gem::Dependency
|
154
154
|
name: rspec-expectations
|
155
155
|
requirement: !ruby/object:Gem::Requirement
|
156
156
|
requirements:
|
157
|
-
- -
|
157
|
+
- - ! '>='
|
158
158
|
- !ruby/object:Gem::Version
|
159
159
|
version: '0'
|
160
160
|
type: :development
|
161
161
|
prerelease: false
|
162
162
|
version_requirements: !ruby/object:Gem::Requirement
|
163
163
|
requirements:
|
164
|
-
- -
|
164
|
+
- - ! '>='
|
165
165
|
- !ruby/object:Gem::Version
|
166
166
|
version: '0'
|
167
167
|
- !ruby/object:Gem::Dependency
|
168
168
|
name: rspec-mocks
|
169
169
|
requirement: !ruby/object:Gem::Requirement
|
170
170
|
requirements:
|
171
|
-
- -
|
171
|
+
- - ! '>='
|
172
172
|
- !ruby/object:Gem::Version
|
173
173
|
version: '0'
|
174
174
|
type: :development
|
175
175
|
prerelease: false
|
176
176
|
version_requirements: !ruby/object:Gem::Requirement
|
177
177
|
requirements:
|
178
|
-
- -
|
178
|
+
- - ! '>='
|
179
179
|
- !ruby/object:Gem::Version
|
180
180
|
version: '0'
|
181
181
|
- !ruby/object:Gem::Dependency
|
182
182
|
name: rspec_junit_formatter
|
183
183
|
requirement: !ruby/object:Gem::Requirement
|
184
184
|
requirements:
|
185
|
-
- -
|
185
|
+
- - ! '>='
|
186
186
|
- !ruby/object:Gem::Version
|
187
187
|
version: '0'
|
188
188
|
type: :development
|
189
189
|
prerelease: false
|
190
190
|
version_requirements: !ruby/object:Gem::Requirement
|
191
191
|
requirements:
|
192
|
-
- -
|
192
|
+
- - ! '>='
|
193
193
|
- !ruby/object:Gem::Version
|
194
194
|
version: '0'
|
195
195
|
- !ruby/object:Gem::Dependency
|
196
196
|
name: chef
|
197
197
|
requirement: !ruby/object:Gem::Requirement
|
198
198
|
requirements:
|
199
|
-
- -
|
199
|
+
- - ! '>='
|
200
200
|
- !ruby/object:Gem::Version
|
201
201
|
version: '0'
|
202
202
|
type: :development
|
203
203
|
prerelease: false
|
204
204
|
version_requirements: !ruby/object:Gem::Requirement
|
205
205
|
requirements:
|
206
|
-
- -
|
206
|
+
- - ! '>='
|
207
207
|
- !ruby/object:Gem::Version
|
208
208
|
version: '0'
|
209
209
|
description: Ohai profiles your system and emits JSON
|
@@ -216,16 +216,14 @@ files:
|
|
216
216
|
- LICENSE
|
217
217
|
- README.rdoc
|
218
218
|
- Rakefile
|
219
|
-
- bin/ohai
|
220
219
|
- docs/man/man1/ohai.1
|
221
|
-
- lib/ohai.rb
|
222
220
|
- lib/ohai/application.rb
|
223
221
|
- lib/ohai/common/dmi.rb
|
224
222
|
- lib/ohai/config.rb
|
225
|
-
- lib/ohai/dsl.rb
|
226
|
-
- lib/ohai/dsl/plugin.rb
|
227
223
|
- lib/ohai/dsl/plugin/versionvi.rb
|
228
224
|
- lib/ohai/dsl/plugin/versionvii.rb
|
225
|
+
- lib/ohai/dsl/plugin.rb
|
226
|
+
- lib/ohai/dsl.rb
|
229
227
|
- lib/ohai/exception.rb
|
230
228
|
- lib/ohai/hints.rb
|
231
229
|
- lib/ohai/loader.rb
|
@@ -341,6 +339,7 @@ files:
|
|
341
339
|
- lib/ohai/runner.rb
|
342
340
|
- lib/ohai/system.rb
|
343
341
|
- lib/ohai/version.rb
|
342
|
+
- lib/ohai.rb
|
344
343
|
- spec/data/plugins/___lib64___libc.so.6.output
|
345
344
|
- spec/data/plugins/___lib___libc.so.6.output
|
346
345
|
- spec/data/plugins/cc.output
|
@@ -453,6 +452,7 @@ files:
|
|
453
452
|
- spec/unit/provides_map_spec.rb
|
454
453
|
- spec/unit/runner_spec.rb
|
455
454
|
- spec/unit/system_spec.rb
|
455
|
+
- bin/ohai
|
456
456
|
homepage: http://wiki.opscode.com/display/chef/Ohai
|
457
457
|
licenses: []
|
458
458
|
metadata: {}
|
@@ -462,17 +462,17 @@ require_paths:
|
|
462
462
|
- lib
|
463
463
|
required_ruby_version: !ruby/object:Gem::Requirement
|
464
464
|
requirements:
|
465
|
-
- -
|
465
|
+
- - ! '>='
|
466
466
|
- !ruby/object:Gem::Version
|
467
467
|
version: '0'
|
468
468
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
469
469
|
requirements:
|
470
|
-
- -
|
470
|
+
- - ! '>'
|
471
471
|
- !ruby/object:Gem::Version
|
472
|
-
version:
|
472
|
+
version: 1.3.1
|
473
473
|
requirements: []
|
474
474
|
rubyforge_project:
|
475
|
-
rubygems_version: 2.
|
475
|
+
rubygems_version: 2.1.11
|
476
476
|
signing_key:
|
477
477
|
specification_version: 4
|
478
478
|
summary: Ohai profiles your system and emits JSON
|