class Guard::ReloadableSinatra

Public Instance Methods

run_on_modifications(paths) click to toggle source
# File lib/hippo/reloadable_sinatra.rb, line 13
def run_on_modifications(paths)
    @puma.stop
    @puma.start
end
start() click to toggle source
# File lib/hippo/reloadable_sinatra.rb, line 7
def start
    Hippo.logger.info "RELOADING WebServer"
    @puma = ::Hippo::Command::Puma.new
    @puma.start
end
stop() click to toggle source
# File lib/hippo/reloadable_sinatra.rb, line 18
def stop
    @puma.stop
end