Class: PuppetForgeServer::App::Frontend

Inherits:
Sinatra::Base
  • Object
show all
Includes:
Utils::MarkdownRenderer
Defined in:
lib/puppet_forge_server/app/frontend.rb

Instance Method Summary collapse

Methods included from Utils::MarkdownRenderer

#markdown

Constructor Details

#initialize(root, http_client = PuppetForgeServer::Http::HttpClient.new) ⇒ Frontend

Returns a new instance of Frontend.



36
37
38
39
40
# File 'lib/puppet_forge_server/app/frontend.rb', line 36

def initialize(root, http_client = PuppetForgeServer::Http::HttpClient.new)
  super(nil)
  settings.root = root
  @http_client = http_client
end