Class: Kettle::Drift::Process::Printer

Inherits:
Object
  • Object
show all
Defined in:
lib/kettle/drift/process/printer.rb

Instance Method Summary collapse

Constructor Details

#initialize(diff:, lock_path:, mode: :update) ⇒ Printer

Returns a new instance of Printer.



7
8
9
10
11
# File 'lib/kettle/drift/process/printer.rb', line 7

def initialize(diff:, lock_path:, mode: :update)
  @diff = diff
  @lock_path = lock_path
  @mode = mode
end

Instance Method Details



13
14
15
# File 'lib/kettle/drift/process/printer.rb', line 13

def print_results
  send(:"print_#{diff.state}")
end