arvados-cli 0.1.20140730210049 → 0.1.20140731165007
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/crunch-job +14 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2774620db247820071711f464eeafa78926d0cbd
|
4
|
+
data.tar.gz: 48b362e590221c28d70e6a2c363a47b2e84c0afd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e60b9efc1b65cfa36e7da26f9eab76aafd8386000aa4c80350c8ee187a0855e4eeb7d9bf0a9124ec7bccb72fa859181161e845a34bc01ef086d464551b59d7ac
|
7
|
+
data.tar.gz: b692c707727a293325bb02dfd16fc7199c45c05221bd0801417955d9a79009f08b3da1defebfa18e40465a9bec2a40bde458a0c972b363a6a250b24eb6514d76
|
data/bin/crunch-job
CHANGED
@@ -1179,7 +1179,20 @@ sub fetch_block
|
|
1179
1179
|
|
1180
1180
|
my $cmd = "arv-get \Q$hash\E";
|
1181
1181
|
open($keep, '-|', $cmd) or die "fetch_block: $cmd: $!";
|
1182
|
-
|
1182
|
+
$output_block = '';
|
1183
|
+
while (1) {
|
1184
|
+
my $buf;
|
1185
|
+
my $bytes = sysread($keep, $buf, 1024 * 1024);
|
1186
|
+
if (!defined $bytes) {
|
1187
|
+
die "reading from arv-get: $!";
|
1188
|
+
} elsif ($bytes == 0) {
|
1189
|
+
# sysread returns 0 at the end of the pipe.
|
1190
|
+
last;
|
1191
|
+
} else {
|
1192
|
+
# some bytes were read into buf.
|
1193
|
+
$output_block .= $buf;
|
1194
|
+
}
|
1195
|
+
}
|
1183
1196
|
close $keep;
|
1184
1197
|
return $output_block;
|
1185
1198
|
}
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: arvados-cli
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.20140731165007
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Arvados Authors
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-07-
|
11
|
+
date: 2014-07-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: arvados
|
@@ -166,7 +166,7 @@ dependencies:
|
|
166
166
|
- - "<"
|
167
167
|
- !ruby/object:Gem::Version
|
168
168
|
version: 1.0.0
|
169
|
-
description: This is the Arvados SDK CLI gem, git revision
|
169
|
+
description: This is the Arvados SDK CLI gem, git revision da7d1fa4d078d0d7785672a195b16a9134478b0d
|
170
170
|
email: gem-dev@curoverse.com
|
171
171
|
executables:
|
172
172
|
- arv
|