Class: Gizzard::Transformation::Op::RemoveForwarding

Inherits:
ShardOp
  • Object
show all
Defined in:
lib/gizzard/transformation_op.rb

Overview

XXX: A no-op, but needed for setup/teardown symmetry

Instance Attribute Summary

Attributes inherited from ShardOp

#template

Instance Method Summary collapse

Methods inherited from ShardOp

#eql?, #initialize, #inverse?

Methods inherited from BaseOp

#<=>, #eql?, #inspect, #inverse?, #involved_shards

Constructor Details

This class inherits a constructor from Gizzard::Transformation::Op::ShardOp

Instance Method Details

#apply(nameserver, table_id, base_id, table_prefix, translations) ⇒ Object



217
218
219
220
221
# File 'lib/gizzard/transformation_op.rb', line 217

def apply(nameserver, table_id, base_id, table_prefix, translations)
  # shard_id   = template.to_shard_id(table_prefix, translations)
  # forwarding = Forwarding.new(table_id, base_id, shard_id)
  # nameserver.remove_forwarding(forwarding)
end

#expand(copy_source, involved_in_copy) ⇒ Object



213
214
215
# File 'lib/gizzard/transformation_op.rb', line 213

def expand(copy_source, involved_in_copy)
  { (involved_in_copy ? :cleanup : :prepare) => [self] }
end