diskman 1.0.2 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/diskman/device.rb +1 -7
- data/lib/diskman/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: af92ab20ba345984b997edfe9c2e06489a11c08b7240a6a2f1b88382184db332
|
4
|
+
data.tar.gz: 62d6cc569360f88c58a8f0be2e9291b94c55f5c8505782a8c2965c5cb8f9a24e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7549703957b7db56efa771382cb5da70c6b639382c1bc95c8a8e6b67fa36186eb4adeb6082429417f7e30f90f06557e9dc18230d7ab568271edfdc0632d26060
|
7
|
+
data.tar.gz: 2708f95b53c5aa9cf1fc6ef43533a23397d06429f604369aa15158a65cbdd57e63b27908352f4f75a9767c1d9de6d1b8347b044b8af5f774e9945d561119aa42
|
data/lib/diskman/device.rb
CHANGED
@@ -17,13 +17,7 @@ module Diskman
|
|
17
17
|
end
|
18
18
|
|
19
19
|
def get_write_command(path, bytes)
|
20
|
-
|
21
|
-
pv = 'pv --size %d' % bytes
|
22
|
-
dd = 'dd if="%s" | ' + pv + ' | sudo dd of="%s" bs=%d'
|
23
|
-
else
|
24
|
-
dd = 'sudo dd if="%s" of="%s" bs=%d'
|
25
|
-
end
|
26
|
-
|
20
|
+
dd = 'sudo dd if="%s" of="%s" bs=%dK status=progress'
|
27
21
|
dd % [path, @path, 4096]
|
28
22
|
end
|
29
23
|
|
data/lib/diskman/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: diskman
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- crdx
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-11-
|
11
|
+
date: 2019-11-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: require_all
|