Class: Markita::Base
- Inherits:
-
Sinatra::Base
- Object
- Sinatra::Base
- Markita::Base
- Defined in:
- lib/markita/base.rb,
lib/markita/plug/about.rb,
lib/markita/plug/login.rb,
lib/markita/plug/readme.rb,
lib/markita/plug/favicon.rb,
lib/markita/plug/highlight.rb
Defined Under Namespace
Modules: About, Favicon, Highlight, Login
Class Method Summary collapse
Class Method Details
.run! ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/markita/base.rb', line 7 def Base.run! puts "#{$0}-#{VERSION}" super do |server| if ['.cert.crt', '.pkey.pem'].all?{ File.exist? File.join(ROOT, _1)} server.ssl = true server. = { :cert_chain_file => File.join(ROOT, '.cert.crt'), :private_key_file => File.join(ROOT, '.pkey.pem'), :verify_peer => false, } end end end |