class PM::SinatraApp

Attributes

pm[R]
port[RW]

Public Class Methods

new() click to toggle source
# File lib/patchmaster/web/sinatra_app.rb, line 112
def initialize
  @pm = PM::PatchMaster.instance
end

Public Instance Methods

refresh() click to toggle source

Public method callable by triggers

# File lib/patchmaster/web/sinatra_app.rb, line 125
def refresh
  # FIXME
end
run() click to toggle source
# File lib/patchmaster/web/sinatra_app.rb, line 116
def run
  self.class.set(:port, @port) if @port
  @pm.start
ensure
  @pm.stop
  @pm.close_debug_file
end