gizzmo 0.13.0 → 0.13.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.13.0
1
+ 0.13.1
@@ -979,8 +979,8 @@ module Gizzard
979
979
  unless be_quiet
980
980
  transformations.each do |transformation, trees|
981
981
  puts transformation.inspect
982
- puts "Applied to #{trees.length} shards:"
983
- trees.keys.sort.each {|f| puts " #{f.inspect}" }
982
+ puts "Applied to #{trees.length} shards"
983
+ #trees.keys.sort.each {|f| puts " #{f.inspect}" }
984
984
  end
985
985
  puts ""
986
986
  end
@@ -1035,8 +1035,8 @@ module Gizzard
1035
1035
  unless be_quiet
1036
1036
  transformations.each do |transformation, trees|
1037
1037
  puts transformation.inspect
1038
- puts "Applied to #{trees.length} shards:"
1039
- trees.keys.sort.each {|f| puts " #{f.inspect}" }
1038
+ puts "Applied to #{trees.length} shards"
1039
+ #trees.keys.sort.each {|f| puts " #{f.inspect}" }
1040
1040
  end
1041
1041
  puts ""
1042
1042
  end
@@ -37,7 +37,7 @@ module Gizzard
37
37
 
38
38
  REPLICATING_SHARD_TYPES = ["ReplicatingShard", "FailingOverShard"]
39
39
 
40
- INVALID_COPY_TYPES = ["ReadOnlyShard", "BlackHoleShard", "BlockedShard"]
40
+ INVALID_COPY_TYPES = ["ReadOnlyShard", "BlackHoleShard", "BlockedShard", "WriteOnlyShard"]
41
41
 
42
42
  SHARD_SUFFIXES = {
43
43
  "FailingOverShard" => 'replicating',
@@ -306,7 +306,7 @@ subcommands = {
306
306
  'repair-tables' => OptionParser.new do |opts|
307
307
  opts.banner = "Usage: #{zero} -T TABLE,... repair-tables [options]"
308
308
  separators(opts, DOC_STRINGS["repair-tables"])
309
- opts.on("--max-copies=COUNT", "Limit max simultaneous copies to COUNT.") do |c|
309
+ opts.on("--max-copies=COUNT", "Limit max simultaneous copies to COUNT. (default 100)") do |c|
310
310
  subcommand_options.num_copies = c.to_i
311
311
  end
312
312
  end,
@@ -402,6 +402,7 @@ subcommands = {
402
402
  'add-partition' => OptionParser.new do |opts|
403
403
  opts.banner = "Usage: #{zero} add-partition [options] TEMPLATE ..."
404
404
  separators(opts, DOC_STRINGS["add-partition"])
405
+ add_template_opts subcommand_options, opts
405
406
 
406
407
  add_scheduler_opts subcommand_options, opts
407
408
 
@@ -412,6 +413,7 @@ subcommands = {
412
413
  'remove-partition' => OptionParser.new do |opts|
413
414
  opts.banner = "Usage: #{zero} remove-partition [options] TEMPLATE ..."
414
415
  separators(opts, DOC_STRINGS["remove-partition"])
416
+ add_template_opts subcommand_options, opts
415
417
 
416
418
  add_scheduler_opts subcommand_options, opts
417
419
 
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gizzmo
3
3
  version: !ruby/object:Gem::Version
4
- hash: 43
4
+ hash: 41
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 13
9
- - 0
10
- version: 0.13.0
9
+ - 1
10
+ version: 0.13.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Kyle Maxwell
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2012-01-10 00:00:00 -08:00
18
+ date: 2012-01-12 00:00:00 -08:00
19
19
  default_executable:
20
20
  dependencies: []
21
21