Class: IntercomExport::Executor::DryRun
- Inherits:
-
Object
- Object
- IntercomExport::Executor::DryRun
- Defined in:
- lib/intercom_export/executor/dry_run.rb
Instance Method Summary collapse
- #call(commands) ⇒ Object
-
#initialize(listener) ⇒ DryRun
constructor
A new instance of DryRun.
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 |