Module: Easyop::Plugins::Events::RunWrapper

Defined in:
lib/easyop/plugins/events.rb

Instance Method Summary collapse

Instance Method Details

#_easyop_run(ctx, raise_on_failure:) ⇒ Object

Wraps _easyop_run to publish declared events in an ensure block. Events fire AFTER the operation completes — success, failure, or exception.



90
91
92
93
94
# File 'lib/easyop/plugins/events.rb', line 90

def _easyop_run(ctx, raise_on_failure:)
  super
ensure
  _events_publish_all(ctx)
end