Skip to content
Browse files

bug fixes

  • Loading branch information...
1 parent 7b5a8be commit d2bfe30070aca7d586828a5e1177545e072affd3 Kyle Maxwell committed
Showing with 3 additions and 4 deletions.
  1. +2 −3 lib/gizzard/commands.rb
  2. +1 −1 lib/gizzmo.rb
View
5 lib/gizzard/commands.rb
@@ -254,8 +254,8 @@ def run
class WrapCommand < ShardCommand
def self.derive_wrapper_shard_id(shard_info, wrapping_class_name)
- prefix_prefix = wrapping_class_name.split(".").last.downcase.gsub("shard", "") + "_"
- ShardId.new("localhost", prefix_prefix + shard_info.id.table_prefix)
+ suffix = "_" + wrapping_class_name.split(".").last.downcase.gsub("shard", "")
+ ShardId.new("localhost", shard_info.id.table_prefix + suffix)
end
def run
@@ -331,7 +331,6 @@ def run
puts "gizzmo create #{shard_info.class_name} -s '#{shard_info.source_type}' -d '#{shard_info.destination_type}' #{new_shards.join(" ")}"
puts "gizzmo wrap #{command_options.write_only_shard} #{new_shards.join(" ")}"
shards.map {|(old, new)| puts "gizzmo copy #{old} #{new}" }
- shards.map {|(old, new)| puts "gizzmo copy #{old} #{new}" }
end
end
View
2 lib/gizzmo.rb
@@ -167,7 +167,7 @@ def separators(opts, string)
separators(opts, DOC_STRINGS["reload"])
end,
'addlink' => OptionParser.new do |opts|
- opts.banner = "Usage: #{zero} addlink PARENT_SHARD_ID WEIGHT"
+ opts.banner = "Usage: #{zero} addlink PARENT_SHARD_ID CHILD_SHARD_ID WEIGHT"
separators(opts, DOC_STRINGS["addlink"])
end,
'unlink' => OptionParser.new do |opts|

0 comments on commit d2bfe30

Please sign in to comment.
Something went wrong with that request. Please try again.