Class: Gizzard::Transformation::Op::RemoveForwarding
- 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
Instance Method Summary collapse
- #apply(nameserver, table_id, base_id, table_prefix, translations) ⇒ Object
- #expand(copy_source, involved_in_copy) ⇒ Object
Methods inherited from ShardOp
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 (copy_source, involved_in_copy) { (involved_in_copy ? :cleanup : :prepare) => [self] } end |