Sha256: 13506f0607795ab9973e635cdd244543ac2274589fdc51b169e112a20341c783

Contents?: true

Size: 595 Bytes

Versions: 3

Compression:

Stored size: 595 Bytes

Contents

require 'envoy/client/trunk'
require 'envoy/client/config'
require 'envoy/version'

class Envoy::Client::Command

  def run (args)
    EM.run do
      Envoy.verbosity = Envoy::INFO
      stopper = proc { $exiting = true; EventMachine.stop }
      Signal.trap("INT", stopper)
      Signal.trap("TERM", stopper)
      Envoy.log(Envoy::DEBUG, "envoy #{Envoy::VERSION} starting up")
      config = Envoy::Client::Config.new
      config.parse_options
      config.parse_envoyfile
      config.infer_sane_defaults
      config.start_service
      Envoy::Client::Trunk.start config
    end
  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
envoy-proxy-1.0.3 lib/envoy/client/command.rb
envoy-proxy-1.0.1 lib/envoy/client/command.rb
envoy-proxy-1.0.0 lib/envoy/client/command.rb