enterprise-ohai 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
@@ -25,6 +25,8 @@ by_uuid_root = '/dev/disk/by-uuid'
|
|
25
25
|
|
26
26
|
section.split("\n").each do |line|
|
27
27
|
case line
|
28
|
+
when '' then break
|
29
|
+
when %r{^Error: (.*): } then path = $1
|
28
30
|
when %r{^Model: (.*)$} then info[:model] = $1
|
29
31
|
when %r{^Disk (.*): (.*)$} then path, info[:size] = $1, $2
|
30
32
|
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: 19
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 4
|
10
|
+
version: 0.1.4
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- GitHub
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-12-
|
18
|
+
date: 2011-12-12 00:00:00 -08:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|