enterprise-ohai 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
@@ -25,8 +25,7 @@ by_uuid_root = '/dev/disk/by-uuid'
|
|
25
25
|
|
26
26
|
section.split("\n").each do |line|
|
27
27
|
case line
|
28
|
-
when
|
29
|
-
when %r{^Error: (.*): } then path = $1
|
28
|
+
when %r{^Error: (.*): } then disks[$1] ||= Mash.new
|
30
29
|
when %r{^Model: (.*)$} then info[:model] = $1
|
31
30
|
when %r{^Disk (.*): (.*)$} then path, info[:size] = $1, $2
|
32
31
|
when %r{^Number\s+} then headers = line.split(/\s{2,}/).map {|h| h.downcase.gsub(/\W/, '_') }
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: enterprise-ohai
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 17
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 5
|
10
|
+
version: 0.1.5
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- GitHub
|