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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/snap_ebs/snapshotter.rb +3 -4
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 09451fa9061511bfe1442cac3f15884407f08232
4
- data.tar.gz: de83068b869c4ea72a3020c4946121743f269dee
3
+ metadata.gz: 038e0d25b2351492bf303b74f04c5e5263036df1
4
+ data.tar.gz: 6d4d2fec3684e3291dc2cc78c11eb5fc22c016a4
5
5
  SHA512:
6
- metadata.gz: 9cdd818bb391797aa7b9f63349a06bbe7d492c9f2327f9d65a90ad050daadbd62fa5d75487bde5e1790870a5f85aa41da8a2733915af4fa4181bc39d62dc60e7
7
- data.tar.gz: d4d9ba9c19e88163ba9afefa271b41a9b2ed54737464607e81091e9a41d8a88e3e39caa677fac3220686f02915f908c660f5cbd5fa51a240d10e10b6f59a77f5
6
+ metadata.gz: 8de0823435ddeace70b1ba6cb8d55c0d46f9413e9bad0ab7bc972b44a2b6cc21f5a49ff56190430e6fa31974a3799e3e9633fa122319cd858f691109fc01f2bf
7
+ data.tar.gz: 6f2fcbfdd89f34f712f1fe5775cba9a6a61d125c1406ad694e74279e1159a7b0a420fe6682bacc0abc4fe7720261febd44052eec1c9188a098c69cc7e2267ff9
@@ -84,10 +84,9 @@ module SnapEbs::Snapshotter
84
84
  end
85
85
 
86
86
  def device_to_directory device
87
- `df -T | grep dev`.lines.each do |lines|
88
- parts = line.split(/\s/).map &:strip
89
- return parts.list if parts.first == device
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.20
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-28 00:00:00.000000000 Z
11
+ date: 2015-07-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fog