ohai 7.2.0.rc.2 → 7.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ohai/hints.rb +1 -1
- data/lib/ohai/plugins/aix/kernel.rb +4 -4
- data/lib/ohai/system.rb +1 -1
- data/lib/ohai/version.rb +1 -1
- data/spec/unit/plugins/ec2_spec.rb +2 -0
- metadata +8 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8f5021abfe73ff336fe9486ae97057693bf26393
|
4
|
+
data.tar.gz: 5071190fbdfb48ac7f082ad9414c11ef2e4d3258
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b8c615bbf2ac0859d6d5880e8c3189abca58270a0e115ce364a443e9f7d34c3b36b9ef679f67d0788501c6d4cb4b0c002cd00dc80fca57229db462f88d264056
|
7
|
+
data.tar.gz: 92dc7cdb0928b81d0695bf2298725fe50887d85c81129c1c765790ca0ca72f6e2069913f2914744f61135e356f1b62eff4372c6f15b21b81b92ce4f7898724b0
|
data/lib/ohai/hints.rb
CHANGED
@@ -22,10 +22,10 @@ Ohai.plugin(:Kernel) do
|
|
22
22
|
collect_data(:aix) do
|
23
23
|
kernel Mash.new
|
24
24
|
|
25
|
-
kernel[:name] = shell_out("uname -s").stdout.downcase
|
26
|
-
kernel[:release] = shell_out("uname -r").stdout
|
27
|
-
kernel[:version] = shell_out("uname -v").stdout
|
28
|
-
kernel[:machine] = shell_out("uname -p").stdout
|
25
|
+
kernel[:name] = shell_out("uname -s").stdout.split($/)[0].downcase
|
26
|
+
kernel[:release] = shell_out("uname -r").stdout.split($/)[0]
|
27
|
+
kernel[:version] = shell_out("uname -v").stdout.split($/)[0]
|
28
|
+
kernel[:machine] = shell_out("uname -p").stdout.split($/)[0]
|
29
29
|
kernel[:modules] = Mash.new
|
30
30
|
end
|
31
31
|
end
|
data/lib/ohai/system.rb
CHANGED
data/lib/ohai/version.rb
CHANGED
@@ -24,6 +24,8 @@ describe Ohai::System, "plugin ec2" do
|
|
24
24
|
before(:each) do
|
25
25
|
@plugin = get_plugin("ec2")
|
26
26
|
@plugin[:network] = {:interfaces => {:eth0 => {} } }
|
27
|
+
File.stub(:exist?).with('/etc/chef/ohai/hints/ec2.json').and_return(false)
|
28
|
+
File.stub(:exist?).with('C:\chef\ohai\hints/ec2.json').and_return(false)
|
27
29
|
end
|
28
30
|
|
29
31
|
shared_examples_for "!ec2" do
|
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
|
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-07-
|
11
|
+
date: 2014-07-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: mime-types
|
@@ -42,16 +42,16 @@ dependencies:
|
|
42
42
|
name: ffi-yajl
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- - "
|
45
|
+
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '0'
|
47
|
+
version: '1.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
|
-
version: '0'
|
54
|
+
version: '1.0'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: mixlib-cli
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -521,9 +521,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
521
521
|
version: '0'
|
522
522
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
523
523
|
requirements:
|
524
|
-
- - "
|
524
|
+
- - ">="
|
525
525
|
- !ruby/object:Gem::Version
|
526
|
-
version:
|
526
|
+
version: '0'
|
527
527
|
requirements: []
|
528
528
|
rubyforge_project:
|
529
529
|
rubygems_version: 2.2.2
|