Sha256: aefbdfcaf4d61b032be5b4a1e7c7afcc187058819c3e4fa1b5b2b87b2dee46be

Contents?: true

Size: 474 Bytes

Versions: 11

Compression:

Stored size: 474 Bytes

Contents

class DummyServerengine
  def initialize
  end

  def startup
    @server = nil
    if defined?(ServerEngine) # for v0.14. in_forward requires socket manager server
      socket_manager_path = ServerEngine::SocketManager::Server.generate_path
      @server = ServerEngine::SocketManager::Server.open(socket_manager_path)
      ENV['SERVERENGINE_SOCKETMANAGER_PATH'] = socket_manager_path.to_s
    end
    @server
  end

  def shutdown
    @server.close if @server
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
fluent-logger-0.9.1 spec/support/dummy_serverengine.rb
fluent-logger-0.9.0 spec/support/dummy_serverengine.rb
fluent-logger-0.8.2 spec/support/dummy_serverengine.rb
fluent-logger-0.8.1 spec/support/dummy_serverengine.rb
fluent-logger-0.8.0 spec/support/dummy_serverengine.rb
fluent-logger-0.7.2 spec/support/dummy_serverengine.rb
fluent-logger-0.7.1 spec/support/dummy_serverengine.rb
fluent-logger-0.7.0 spec/support/dummy_serverengine.rb
fluent-logger-0.6.3 spec/support/dummy_serverengine.rb
fluent-logger-0.6.2 spec/support/dummy_serverengine.rb
fluent-logger-0.6.1 spec/support/dummy_serverengine.rb