lib/gizzmo.rb in gizzmo-0.4.2 vs lib/gizzmo.rb in gizzmo-0.5.0

- old
+ new

@@ -61,11 +61,11 @@ subcommands = { 'create' => OptionParser.new do |opts| opts.banner = "Usage: #{zero} create [options] CLASS_NAME SHARD_ID [MORE SHARD_IDS...]" separators(opts, DOC_STRINGS["create"]) - + opts.on("-s", "--source-type=TYPE") do |s| subcommand_options.source_type = s end opts.on("-d", "--destination-type=TYPE") do |s| @@ -74,10 +74,22 @@ end, 'wrap' => OptionParser.new do |opts| opts.banner = "Usage: #{zero} wrap CLASS_NAME SHARD_ID_TO_WRAP [MORE SHARD_IDS...]" separators(opts, DOC_STRINGS["wrap"]) end, + 'report' => OptionParser.new do |opts| + opts.banner = "Usage: #{zero} report RUBY_REGEX" + separators(opts, DOC_STRINGS["report"]) + end, + 'rebalance' => OptionParser.new do |opts| + opts.banner = "Usage: #{zero} rebalance RUBY_REGEX" + separators(opts, DOC_STRINGS["rebalance"]) + end, + 'pair' => OptionParser.new do |opts| + opts.banner = "Usage: #{zero} pair" + separators(opts, DOC_STRINGS["pair"]) + end, 'subtree' => OptionParser.new do |opts| opts.banner = "Usage: #{zero} subtree SHARD_ID" separators(opts, DOC_STRINGS["subtree"]) end, 'hosts' => OptionParser.new do |opts| @@ -207,14 +219,14 @@ end opts.on("-P", "--port=PORT", "PORT of remote thrift service") do |port| global_options.port = port end - + opts.on("--subtree", "Render in subtree mode") do global_options.render << "subtree" end - + opts.on("--info", "Render in info mode") do global_options.render << "info" end opts.on("-D", "--dry-run", "") do |port| \ No newline at end of file