lib/gizzard/commands.rb in gizzmo-0.7.4 vs lib/gizzard/commands.rb in gizzmo-0.7.5

- old
+ new

@@ -252,12 +252,12 @@ end end 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 class_name, *shard_ids = @argv help! "No shards specified" if shard_ids.empty? @@ -328,10 +328,9 @@ new_shards = shards.map{|(old, new)| new } 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 class PairCommand < ShardCommand