Class: DnsMadeEasy::Zone::Diff
- Inherits:
-
Object
- Object
- DnsMadeEasy::Zone::Diff
- Defined in:
- lib/dnsmadeeasy/zone/diff.rb
Overview
Builds a conservative execution plan from desired and remote record sets.
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(desired_records:, remote_records:) ⇒ Diff
constructor
A new instance of Diff.
Constructor Details
#initialize(desired_records:, remote_records:) ⇒ Diff
Returns a new instance of Diff.
9 10 11 12 |
# File 'lib/dnsmadeeasy/zone/diff.rb', line 9 def initialize(desired_records:, remote_records:) @desired_records = desired_records @remote_records = remote_records end |
Instance Method Details
#call ⇒ Object
14 15 16 17 18 19 20 21 |
# File 'lib/dnsmadeeasy/zone/diff.rb', line 14 def call Plan.new( creates: create_actions, updates: update_actions, skipped_deletes: skipped_delete_actions, ambiguous: ambiguous_actions ) end |