gizzmo 0.3.1 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +2 -1
- data/VERSION +1 -1
- data/gizzmo.gemspec +1 -1
- data/lib/gizzmo.rb +5 -1
- data/test/test.sh +1 -0
- metadata +2 -2
data/.gitignore
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.3.
|
1
|
+
0.3.2
|
data/gizzmo.gemspec
CHANGED
data/lib/gizzmo.rb
CHANGED
@@ -181,9 +181,13 @@ unless subcommands.include?(subcommand_name)
|
|
181
181
|
exit 1
|
182
182
|
end
|
183
183
|
|
184
|
-
log = global_options.log || "
|
184
|
+
log = global_options.log || "./gizzmo.log"
|
185
185
|
service = Gizzard::Thrift::ShardManager.new(global_options.host, global_options.port, log, global_options.dry)
|
186
186
|
|
187
|
+
while !$stdin.tty? && line = STDIN.gets
|
188
|
+
argv << line.strip
|
189
|
+
end
|
190
|
+
|
187
191
|
begin
|
188
192
|
Gizzard::Command.run(subcommand_name, service, global_options, argv, subcommand_options)
|
189
193
|
rescue HelpNeededError => e
|
data/test/test.sh
CHANGED
@@ -61,3 +61,4 @@ g links localhost/table_b_0 | expect empty-file.txt
|
|
61
61
|
|
62
62
|
g wrap com.twitter.gizzard.shards.BlockedShard localhost/table_a_3
|
63
63
|
g find -hlocalhost | xargs ../bin/gizzmo -Cconfig.yaml subtree 2>&1 | expect subtree.txt
|
64
|
+
g find -hlocalhost | ../bin/gizzmo -Cconfig.yaml subtree 2>&1 | expect subtree.txt
|