require 'enviado/version' module Enviado ENVOY_PATH = File.expand_path("../ext/#{RUBY_PLATFORM}/envoy", __FILE__) class << self def start(config_path:) pid = spawn("#{ENVOY_PATH} -c #{config_path}") sleep 5 # for good measure! ;) pid end end end