Module: DaemonHelper

Defined in:
lib/onapp/engine/spec/daemon_helper.rb

Instance Method Summary (collapse)

Instance Method Details

- (Object) onapp_engine_cleanup



9
10
11
12
# File 'lib/onapp/engine/spec/daemon_helper.rb', line 9

def onapp_engine_cleanup
  Daemon.supervision.messaging_connection = nil
  Daemon::Supervision::Registry.clear
end

- (Object) set_amqp_connection(connection)



4
5
6
7
# File 'lib/onapp/engine/spec/daemon_helper.rb', line 4

def set_amqp_connection(connection)
  Daemon.supervision.messaging_connection =
    Daemon::Utils::ProcessCache.new(proc{ connection })
end