Skip to content
This repository has been archived by the owner on Sep 18, 2021. It is now read-only.

Commit

Permalink
Let add/remove partition accept template_opts
Browse files Browse the repository at this point in the history
  • Loading branch information
Boaz Avital committed Jan 12, 2012
1 parent 87c4af9 commit b50a9ff
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/gizzard/commands.rb
Original file line number Diff line number Diff line change
Expand Up @@ -979,8 +979,8 @@ def run
unless be_quiet
transformations.each do |transformation, trees|
puts transformation.inspect
puts "Applied to #{trees.length} shards:"
trees.keys.sort.each {|f| puts " #{f.inspect}" }
puts "Applied to #{trees.length} shards"
#trees.keys.sort.each {|f| puts " #{f.inspect}" }
end
puts ""
end
Expand Down Expand Up @@ -1035,8 +1035,8 @@ def run
unless be_quiet
transformations.each do |transformation, trees|
puts transformation.inspect
puts "Applied to #{trees.length} shards:"
trees.keys.sort.each {|f| puts " #{f.inspect}" }
puts "Applied to #{trees.length} shards"
#trees.keys.sort.each {|f| puts " #{f.inspect}" }
end
puts ""
end
Expand Down
2 changes: 2 additions & 0 deletions lib/gizzmo.rb
Original file line number Diff line number Diff line change
Expand Up @@ -402,6 +402,7 @@ def add_template_opts(subcommand_options, opts)
'add-partition' => OptionParser.new do |opts|
opts.banner = "Usage: #{zero} add-partition [options] TEMPLATE ..."
separators(opts, DOC_STRINGS["add-partition"])
add_template_opts subcommand_options, opts

add_scheduler_opts subcommand_options, opts

Expand All @@ -412,6 +413,7 @@ def add_template_opts(subcommand_options, opts)
'remove-partition' => OptionParser.new do |opts|
opts.banner = "Usage: #{zero} remove-partition [options] TEMPLATE ..."
separators(opts, DOC_STRINGS["remove-partition"])
add_template_opts subcommand_options, opts

add_scheduler_opts subcommand_options, opts

Expand Down

0 comments on commit b50a9ff

Please sign in to comment.