Class: IntercomExport::Executor::DryRun

Inherits:
Object
  • Object
show all
Defined in:
lib/intercom_export/executor/dry_run.rb

Instance Method Summary collapse

Constructor Details

#initialize(listener) ⇒ DryRun

Returns a new instance of DryRun.



4
5
6
# File 'lib/intercom_export/executor/dry_run.rb', line 4

def initialize(listener)
  @listener = listener
end

Instance Method Details

#call(commands) ⇒ Object



8
9
10
11
12
# File 'lib/intercom_export/executor/dry_run.rb', line 8

def call(commands)
  commands.each do |c|
    listener.executing c
  end
end