Class: JSSWebHooks::Server

Inherits:
Sinatra::Base
  • Object
show all
Defined in:
lib/jss/webhooks/server_app.rb,
lib/jss/webhooks/server_app/server.rb,
lib/jss/webhooks/server_app/routes/home.rb,
lib/jss/webhooks/server_app/routes/handle_webhook_event.rb

Overview

see server.rb

Constant Summary collapse

DEFAULT_SERVER_ENGINE =
:webrick
DEFAULT_PORT =
8443

Class Method Summary collapse

Class Method Details

.run!Object

run the server doing any engine-based config along the way



44
45
46
47
48
49
50
51
# File 'lib/jss/webhooks/server_app/server.rb', line 44

def self.run!
  super do |server|
    case server
    when WEBrick::HTTPServer
      webrick_ssl_config server
    end # case
  end # do server
end

.webrick_ssl_config(_server) ⇒ Object

run!



53
54
55
56
# File 'lib/jss/webhooks/server_app/server.rb', line 53

def self.webrick_ssl_config(_server)
  # TODO: add ssl config
  true
end