Class: PuppetHerald::Application

Inherits:
Sinatra::Application
  • Object
show all
Defined in:
lib/puppet-herald/application.rb

Overview

Class for an Herald sinatra application

Class Method Summary collapse

Class Method Details

.run!(options = {}, &block) ⇒ Sinatra::Application

Executes the Herald application

Parameters:

  • options (Hash) (defaults to: {})

    an extra options for Rack server

  • block (block)

    an extra configuration block

Returns:

  • (Sinatra::Application)

    an Herald application



21
22
23
24
# File 'lib/puppet-herald/application.rb', line 21

def run!(options = {}, &block)
  PuppetHerald::App::Configuration.dbmigrate!
  super options, *block
end