vidibus-sysinfo 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/vidibus/sysinfo/storage.rb +5 -1
- data/lib/vidibus/sysinfo/version.rb +1 -1
- metadata +2 -2
@@ -22,7 +22,11 @@ module Vidibus
|
|
22
22
|
|
23
23
|
class << self
|
24
24
|
def command(mount_point)
|
25
|
-
|
25
|
+
if !mount_point || mount_point == ''
|
26
|
+
mp = '/'
|
27
|
+
else
|
28
|
+
mp = mount_point.gsub(/[^\/a-z0-9]/, '')
|
29
|
+
end
|
26
30
|
"df -m | grep '#{mp}'"
|
27
31
|
end
|
28
32
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vidibus-sysinfo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -145,7 +145,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
145
145
|
version: '0'
|
146
146
|
segments:
|
147
147
|
- 0
|
148
|
-
hash:
|
148
|
+
hash: -2351237850568153354
|
149
149
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
150
150
|
none: false
|
151
151
|
requirements:
|