Class: DnsMadeEasy::Zone::Diff

Inherits:
Object
  • Object
show all
Defined in:
lib/dnsmadeeasy/zone/diff.rb

Overview

Builds a conservative execution plan from desired and remote record sets.

Instance Method Summary collapse

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

#callObject



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