# File lib/spork/app_framework/padrino.rb, line 3 def preload(&block) STDERR.puts "Preloading Padrino environment" STDERR.flush ENV["PADRINO_ENV"] ||= "test" require boot_file # Make it so that we don't have to restart Spork if we change, say, a model or routes Spork.each_run { ::Padrino.reload! } yield end