snap-ebs 0.0.20 → 0.0.21
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/snap_ebs/snapshotter.rb +3 -4
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 038e0d25b2351492bf303b74f04c5e5263036df1
|
4
|
+
data.tar.gz: 6d4d2fec3684e3291dc2cc78c11eb5fc22c016a4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8de0823435ddeace70b1ba6cb8d55c0d46f9413e9bad0ab7bc972b44a2b6cc21f5a49ff56190430e6fa31974a3799e3e9633fa122319cd858f691109fc01f2bf
|
7
|
+
data.tar.gz: 6f2fcbfdd89f34f712f1fe5775cba9a6a61d125c1406ad694e74279e1159a7b0a420fe6682bacc0abc4fe7720261febd44052eec1c9188a098c69cc7e2267ff9
|
data/lib/snap_ebs/snapshotter.rb
CHANGED
@@ -84,10 +84,9 @@ module SnapEbs::Snapshotter
|
|
84
84
|
end
|
85
85
|
|
86
86
|
def device_to_directory device
|
87
|
-
`
|
88
|
-
|
89
|
-
|
90
|
-
end
|
87
|
+
parts = `cat /etc/mtab | grep #{device}`.split(/\s+/)
|
88
|
+
logger.warn "Could not find directory for #{device}" unless parts.length > 1
|
89
|
+
parts[1]
|
91
90
|
end
|
92
91
|
|
93
92
|
def is_root_device? dir
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: snap-ebs
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.21
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bryan Conrad
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-07-
|
11
|
+
date: 2015-07-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: fog
|